1# Fails when .github/workflows/actions.lock is out of sync with the
2# workflows or a locked pin no longer verifies upstream.
3#
4# After adding a workflow or changing any `uses:`, regenerate the lockfile:
5# gh extension install github/gh-actions-lock
6# gh actions-lock
7# See https://github.com/github/gh-actions-lock
8
9name: verify-lockfile
10
11on:
12 pull_request:
13 merge_group:
14 push:
15 branches:
16 - trunk
17
18permissions:
19 contents: read
20
21concurrency:
22 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
23 cancel-in-progress: true
24
25jobs:
26 verify:
27 runs-on: ubuntu-latest
28 timeout-minutes: 10
29 env:
30 GH_TOKEN: ${{ github.token }}
31 steps:
32 - uses: actions/checkout@v7.0.1
33 with:
34 persist-credentials: false
35 - name: Download the gh-actions-lock verifier and check its digest
36 env:
37 VERIFIER_VERSION: v0.4.1
38 VERIFIER_SHA256: 39deb2fe714dbf74b073d8245fc7f3d50cd0eee18d5c0900e9e849ae933ae17e
39 run: |
40 gh release download "$VERIFIER_VERSION" --repo github/gh-actions-lock --pattern linux-amd64 --output "$RUNNER_TEMP/gh-actions-lock" --clobber
41 echo "$VERIFIER_SHA256 $RUNNER_TEMP/gh-actions-lock" | sha256sum --check --strict
42 chmod +x "$RUNNER_TEMP/gh-actions-lock"
43 - run: '"$RUNNER_TEMP/gh-actions-lock" --verify'
44
1# Fails when .github/workflows/actions.lock is out of sync with the
2# workflows or a locked pin no longer verifies upstream.
3#
4# After adding a workflow or changing any `uses:`, regenerate the lockfile:
5# gh extension install github/gh-actions-lock
6# gh actions-lock
7# See https://github.com/github/gh-actions-lock
8
9name: verify-lockfile
10
11on:
12 pull_request:
13 merge_group:
14 push:
15 branches:
16 - trunk
17
18permissions:
19 contents: read
20
21concurrency:
22 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
23 cancel-in-progress: true
24
25jobs:
26 verify:
27 runs-on: ubuntu-latest
28 timeout-minutes: 10
29 env:
30 GH_TOKEN: ${{ github.token }}
31 steps:
32 - uses: actions/checkout@v7.0.1
33 with:
34 persist-credentials: false
35 - name: Download the gh-actions-lock verifier and check its digest
36 env:
37 VERIFIER_VERSION: v0.4.1
38 VERIFIER_SHA256: 39deb2fe714dbf74b073d8245fc7f3d50cd0eee18d5c0900e9e849ae933ae17e
39 run: |
40 gh release download "$VERIFIER_VERSION" --repo github/gh-actions-lock --pattern linux-amd64 --output "$RUNNER_TEMP/gh-actions-lock" --clobber
41 echo "$VERIFIER_SHA256 $RUNNER_TEMP/gh-actions-lock" | sha256sum --check --strict
42 chmod +x "$RUNNER_TEMP/gh-actions-lock"
43 - run: '"$RUNNER_TEMP/gh-actions-lock" --verify'
44
