Skip to content

Commit ad5ec03

Browse files
committed
ci: github: Add workflow to ensure all GH actions are pinned
This commit introduces a new workflow that checks for SHA-pinned GitHub Actions on pull requests. Signed-off-by: Benjamin Cabé <[email protected]>
1 parent a117d12 commit ad5ec03

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Check SHA-pinned GitHub Actions
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
paths:
10+
- '.github/workflows/**'
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
check-sha-pinned-actions:
17+
name: Verify GitHub Actions
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22+
- name: Ensure SHA pinned actions
23+
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@25ed13d0628a1601b4b44048e63cc4328ed03633 # v3.0.22

0 commit comments

Comments
 (0)