Skip to content

Commit a91a861

Browse files
[Github] Add CodeQL Action to check Github Actions Workflows
This should point out obvious security issues with our Github Actions workflows.
1 parent ba3b3e3 commit a91a861

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/gha-codeql.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Github Actions CodeQL
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
pull_request:
8+
branches:
9+
- main
10+
11+
concurrency:
12+
group: ${{ github.workflow }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
codeql:
17+
name: 'Github Actions CodeQL'
18+
runs-on: ubuntu-24.04
19+
permissions:
20+
security-events: write
21+
steps:
22+
- name: Checkout LLVM
23+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
24+
- name: Initialize CodeQL
25+
uses: github/codeql-action/init@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
26+
with:
27+
languages: actions
28+
queries: security-extended
29+
- name: Perform CodeQL Analysis
30+
uses: github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3

0 commit comments

Comments
 (0)