Skip to content

Commit 12b80bf

Browse files
committed
Lock workflow action dependencies
Track direct and transitive action commits in actions.lock and verify coverage and provenance in CI. Preserve existing action versions except for the approved maintenance Action v2 adoption.
1 parent bc604c7 commit 12b80bf

3 files changed

Lines changed: 53 additions & 2 deletions

File tree

‎.github/workflows/actions-lock.yml‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Verify action lockfile
2+
on:
3+
pull_request: null
4+
push:
5+
branches:
6+
- master
7+
permissions:
8+
contents: read
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+
cancel-in-progress: true
12+
jobs:
13+
verify:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 10
16+
steps:
17+
- name: Harden Runner
18+
uses: step-security/harden-runner@v2.22.2
19+
with:
20+
egress-policy: audit
21+
- uses: actions/checkout@v7.0.1
22+
with:
23+
persist-credentials: false
24+
- name: Verify workflow dependencies
25+
env:
26+
GH_TOKEN: ${{ github.token }}
27+
run: |
28+
gh extension install github/gh-actions-lock --pin v0.4.0
29+
gh actions-lock --verify

‎.github/workflows/actions.lock‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This file is machine-generated by `gh actions-lock`.
2+
# Do not edit by hand; run `gh actions-lock` to update.
3+
# Docs: https://gh.io/actions-lockfile
4+
version: 'v0.0.3'
5+
workflows:
6+
'.github/workflows/actions-lock.yml':
7+
- 'actions/checkout@v7.0.1'
8+
- 'step-security/harden-runner@v2.22.2'
9+
'.github/workflows/release.yml':
10+
- 'actions/checkout@v7.0.1'
11+
- 'step-security/harden-runner@v2.22.2'
12+
dependencies:
13+
'actions/checkout@v7.0.1':
14+
ref: 'v7.0.1'
15+
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
16+
owner_id: 44036562
17+
repo_id: 197814629
18+
'step-security/harden-runner@v2.22.2':
19+
ref: 'v2.22.2'
20+
commit: 'sha1-dc2769abcc0fcfbadfc1df54081c1608579ef6b2'
21+
owner_id: 88700172
22+
repo_id: 422287306

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
contents: write
2020
steps:
2121
- name: Harden runner
22-
uses: step-security/harden-runner@dc2769abcc0fcfbadfc1df54081c1608579ef6b2 # v2.22.2
22+
uses: step-security/harden-runner@v2.22.2
2323
with:
2424
egress-policy: audit
2525

2626
- name: Check out source
27-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
27+
uses: actions/checkout@v7.0.1
2828
with:
2929
persist-credentials: false
3030

0 commit comments

Comments
 (0)