From 1f9263555d747cf57b94d841a15c381d2b33690f Mon Sep 17 00:00:00 2001 From: sue445 Date: Tue, 10 Nov 2026 22:42:19 +0900 Subject: [PATCH] Introduce verify-actions-lockfile --- .github/workflows/actions.lock | 2 ++ .github/workflows/verify-actions-lockfile.yml | 31 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/verify-actions-lockfile.yml diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock index befcdb4..2278445 100644 --- a/.github/workflows/actions.lock +++ b/.github/workflows/actions.lock @@ -12,6 +12,8 @@ workflows: - 'actions/checkout@v7.0.1' - 'coverallsapp/github-action@master' - 'ruby/setup-ruby@v1.336.0' + '.github/workflows/verify-actions-lockfile.yml': + - 'actions/checkout@v7.0.1' dependencies: 'actions/checkout@v7.0.0': ref: 'v7.0.0' diff --git a/.github/workflows/verify-actions-lockfile.yml b/.github/workflows/verify-actions-lockfile.yml new file mode 100644 index 0000000..3453f89 --- /dev/null +++ b/.github/workflows/verify-actions-lockfile.yml @@ -0,0 +1,31 @@ +name: Verify Actions Lockfile + +on: + pull_request: + paths: + - ".github/workflows/*.yml" + - ".github/workflows/actions.lock" + push: + branches: + - master + paths: + - ".github/workflows/*.yml" + - ".github/workflows/actions.lock" + +permissions: + contents: read + +jobs: + verify: + runs-on: ubuntu-slim + + steps: + - uses: actions/checkout@v7.0.1 + + - name: Install gh-actions-lock + run: gh extension install github/gh-actions-lock + + - name: Verify lockfile + run: gh actions-lock --verify + env: + GH_TOKEN: ${{ github.token }}