Skip to content

Commit 6bba791

Browse files
authored
Update security-scan.yml
1 parent e873d97 commit 6bba791

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

.github/workflows/security-scan.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,36 @@ name: Security Scan
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches:
6+
- main
67
pull_request:
78
schedule:
89
- cron: '0 4 * * 0' # weekly Sunday 04:00 UTC
910

1011
jobs:
1112
codeql:
12-
uses: github/codeql-action/.github/workflows/codeql.yml@v3
13+
name: Perform CodeQL Analysis
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
security-events: write
18+
19+
strategy:
20+
matrix:
21+
# pick the languages you use; here we scan JavaScript and Python
22+
language: [ 'javascript', 'python' ]
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
28+
- name: Initialize CodeQL
29+
uses: github/codeql-action/init@v3
30+
with:
31+
languages: ${{ matrix.language }}
32+
33+
- name: Autobuild
34+
uses: github/codeql-action/autobuild@v3
35+
36+
- name: Run CodeQL analysis
37+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)