Skip to content

Commit ab12bb3

Browse files
authored
Update security-scan.yml
1 parent 05d8232 commit ab12bb3

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/security-scan.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
1+
# .github/workflows/security-scan.yml
2+
13
name: Security Scan
24

35
on:
46
push:
57
branches:
68
- main
79
pull_request:
10+
branches:
11+
- main
812
schedule:
9-
- cron: '0 4 * * 0' # weekly Sunday 04:00 UTC
13+
- cron: '0 4 * * 0' # weekly Sunday 04:00 UTC
14+
15+
permissions:
16+
contents: read # allow reading repository contents
17+
security-events: write # allow uploading CodeQL alerts
1018

1119
jobs:
1220
codeql:
1321
name: Perform CodeQL Analysis
1422
runs-on: ubuntu-latest
15-
permissions:
16-
actions: read
17-
security-events: write
1823

1924
strategy:
2025
matrix:
21-
# pick the languages you use; here we scan JavaScript and Python
22-
language: [ 'javascript', 'python' ]
26+
language: [ 'javascript', 'python' ] # scan these languages
2327

2428
steps:
2529
- name: Checkout repository

0 commit comments

Comments
 (0)