Skip to content

Commit badd22c

Browse files
chore(ci): [SECURITY-1117] Enable CodeQL scans for GitHub workflow (#1237)
Enable CodeQL scans for GitHub workflow. For more details on why we do this, please refer to https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/ After the merge, navigate to the code-scanning findings available under the security tab --> code-scanning
1 parent 1cfe776 commit badd22c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: "CodeQL Scan for GitHub Actions Workflows"
3+
4+
on:
5+
push:
6+
branches: [main]
7+
paths: [".github/workflows/**"]
8+
pull_request:
9+
branches: [main]
10+
paths: [".github/workflows/**"]
11+
12+
jobs:
13+
analyze:
14+
name: Analyze GitHub Actions workflows
15+
runs-on: ubuntu-latest
16+
permissions:
17+
actions: read
18+
contents: read
19+
security-events: write
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Initialize CodeQL
25+
uses: github/codeql-action/init@v3
26+
with:
27+
languages: actions
28+
29+
- name: Run CodeQL Analysis
30+
uses: github/codeql-action/analyze@v3
31+
with:
32+
category: actions

0 commit comments

Comments
 (0)