Skip to content

Commit 89abd3c

Browse files
committed
add action on workflow update
1 parent 67f68dd commit 89abd3c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Lockdown untrusted workflows
2+
3+
on:
4+
push:
5+
paths:
6+
- ".github/workflows/**"
7+
pull_request:
8+
paths:
9+
- ".github/workflows/**"
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
enforce_pinned_workflows:
17+
name: Harden Security
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
22+
- name: Ensure 3rd party workflows have SHA pinned
23+
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@f32435541e24cd6a4700a7f52bb2ec59e80603b1

0 commit comments

Comments
 (0)