Skip to content

Commit d4cf5cd

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 d4cf5cd

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Diff for: .github/workflows/pinned-gh-actions.yml

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

0 commit comments

Comments
 (0)