Skip to content

Commit b65e08b

Browse files
committed
Add codeql to flag unpinned actions refs
1 parent 9270f9a commit b65e08b

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

.github/codeql/codeql-config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
query-filters:
2+
- include:
3+
id: actions/unpinned-tag

.github/workflows/codeql.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CodeQL Security Analysis
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
analyze:
9+
name: Analyze GitHub Actions YAML
10+
runs-on: ubuntu-latest
11+
permissions:
12+
security-events: write
13+
actions: read
14+
contents: read
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19+
20+
- name: Initialize CodeQL
21+
uses: github/codeql-action/init@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
22+
with:
23+
languages: "actions"
24+
queries: security-extended
25+
config-file: .github/codeql/codeql-config.yml
26+
27+
- name: Perform CodeQL Analysis
28+
uses: github/codeql-action/analyze@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
29+
with:
30+
category: "/language:actions"

0 commit comments

Comments
 (0)