File tree Expand file tree Collapse file tree 1 file changed +5
-30
lines changed Expand file tree Collapse file tree 1 file changed +5
-30
lines changed Original file line number Diff line number Diff line change 1
- name : Security Scanning
1
+ name : Security Scan
2
2
3
3
on :
4
+ pull_request :
4
5
schedule :
5
- - cron : ' 0 0 * * 0' # Runs weekly on Sunday at midnight UTC
6
- pull_request : # Runs on every pull request
7
- push : # Runs on pushes
8
-
6
+ - cron : ' 0 4 * * 0' # weekly Sunday 04:00 UTC
9
7
10
8
jobs :
11
- codeql-scan :
12
- name : Perform CodeQL Analysis
13
- runs-on : ubuntu-latest
14
-
15
- permissions :
16
- actions : read # Allows Actions to read resources
17
- contents : read # Grants access to code
18
- security-events : write # Required for security analysis
19
-
20
- steps :
21
- # Step 1: Checkout the repository
22
- - name : Checkout code
23
- uses : actions/checkout@v3
24
-
25
- # Step 2: Initialize CodeQL
26
- - name : Initialize CodeQL
27
- uses : github/codeql-action/init@v2
28
- with :
29
- languages : ' javascript,python' # Specify languages (add/remove as needed)
30
- # Optional: Specify custom CodeQL queries
31
- # queries: ./path/to/custom-queries
32
-
33
- # Step 3: Perform CodeQL Analysis
34
- - name : Perform CodeQL Analysis
35
- uses : github/codeql-action/analyze@v2
9
+ codeql :
10
+ uses : github/codeql-action/.github/workflows/codeql.yml@v3
You can’t perform that action at this time.
0 commit comments