Skip to content

Commit ac17a53

Browse files
authored
Update security-scan.yml
1 parent df587ba commit ac17a53

File tree

1 file changed

+5
-30
lines changed

1 file changed

+5
-30
lines changed

.github/workflows/security-scan.yml

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,10 @@
1-
name: Security Scanning
1+
name: Security Scan
22

33
on:
4+
pull_request:
45
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
97

108
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

0 commit comments

Comments
 (0)