Skip to content

Commit 0b28838

Browse files
authored
Update security-scan.yml
1 parent ac580d9 commit 0b28838

File tree

1 file changed

+24
-11
lines changed

1 file changed

+24
-11
lines changed

.github/workflows/security-scan.yml

+24-11
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,41 @@
1-
# .github/workflows/superlinter.yml
1+
# .github/workflows/security-scan.yml
22

3-
name: Super-Linter
3+
name: Security Scan
44

55
on:
66
push:
77
branches:
88
- main
99
pull_request:
10+
branches:
11+
- main
12+
schedule:
13+
- cron: '0 4 * * 0' # weekly Sunday 04:00 UTC
1014

1115
permissions:
1216
contents: read
13-
statuses: write
17+
security-events: write
1418

1519
jobs:
16-
lint:
20+
codeql:
21+
name: Perform CodeQL Analysis
1722
runs-on: ubuntu-latest
1823

24+
strategy:
25+
matrix:
26+
language: [ 'javascript', 'python' ]
27+
1928
steps:
20-
- name: Checkout code
29+
- name: Checkout repository
2130
uses: actions/checkout@v4
2231

23-
- name: Run Super-Linter (via Docker)
24-
uses: docker://ghcr.io/github/super-linter/super-linter:slim-v6.4.1
25-
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
DEFAULT_BRANCH: main
28-
DISABLE_LINTERS: "CHECKOV,JAVASCRIPT_STANDARD,MARKDOWN,PYTHON_BLACK,PYTHON_PYLINT"
32+
- name: Initialize CodeQL
33+
uses: github/codeql-action/init@v3
34+
with:
35+
languages: ${{ matrix.language }}
36+
37+
- name: Autobuild
38+
uses: github/codeql-action/autobuild@v3
39+
40+
- name: Run CodeQL analysis
41+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)