Skip to content

Commit fa814c5

Browse files
authored
Update security-scan.yml
1 parent aa18539 commit fa814c5

File tree

1 file changed

+12
-25
lines changed

1 file changed

+12
-25
lines changed

.github/workflows/security-scan.yml

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

3-
name: Security Scan
3+
name: Super-Linter
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
1410

1511
permissions:
16-
contents: read # allow reading repository contents
17-
security-events: write # allow uploading CodeQL alerts
12+
contents: read
13+
statuses: write
1814

1915
jobs:
20-
codeql:
21-
name: Perform CodeQL Analysis
16+
lint:
2217
runs-on: ubuntu-latest
2318

24-
strategy:
25-
matrix:
26-
language: [ 'javascript', 'python' ] # scan these languages
27-
2819
steps:
29-
- name: Checkout repository
20+
- name: Checkout code
3021
uses: actions/checkout@v4
3122

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
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"

0 commit comments

Comments
 (0)