Skip to content

Commit 06f8d48

Browse files
Add CodeQL workflow for GitHub Actions (#2534)
1 parent 9387803 commit 06f8d48

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, master]
7+
paths: [".github/workflows/**"]
8+
pull_request:
9+
branches: [main, master]
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)