From 5c08a0a4b4c1a9c0a5943dff966c0f3b6ba7a784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien?= Date: Wed, 11 Nov 2026 01:09:50 +0000 Subject: [PATCH] ci: lock the publish and test workflow actions to their commits Adds .github/workflows/actions.lock, generated with gh actions-lock. It records the commit behind every action the workflows use, so a moved tag cannot change what runs in the publish job. Refs are narrowed to exact releases so Dependabot keeps bumping them. --- .github/workflows/actions.lock | 34 +++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 18 ++++++++-------- .github/workflows/npm-publish.yml | 8 ++++---- 3 files changed, 47 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/actions.lock diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock new file mode 100644 index 0000000..727ebe0 --- /dev/null +++ b/.github/workflows/actions.lock @@ -0,0 +1,34 @@ +# This file is machine-generated by `gh actions-lock`. +# Do not edit by hand; run `gh actions-lock` to update. +# Docs: https://gh.io/actions-lockfile +version: 'v0.0.3' +workflows: + '.github/workflows/ci.yml': + - 'actions/checkout@v7.0.1' + - 'actions/setup-node@v7.1.0' + - 'actions/upload-artifact@v7.0.2' + '.github/workflows/npm-publish.yml': + - 'actions/checkout@v7.0.1' + - 'actions/setup-node@v7.1.0' + - 'slackapi/slack-github-action@v1.18.0' +dependencies: + 'actions/checkout@v7.0.1': + ref: 'v7.0.1' + commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1' + owner_id: 44036562 + repo_id: 197814629 + 'actions/setup-node@v7.1.0': + ref: 'v7.1.0' + commit: 'sha1-949feb2413d6458794dcd2491c4babbbce0c15c1' + owner_id: 44036562 + repo_id: 189476904 + 'actions/upload-artifact@v7.0.2': + ref: 'v7.0.2' + commit: 'sha1-cf430e030ddbb5b0abf93d22962f4752f3646cd9' + owner_id: 44036562 + repo_id: 192625955 + 'slackapi/slack-github-action@v1.18.0': + ref: 'v1.18.0' + commit: 'sha1-16b6c78ee73689a627b65332b34e5d409c7299da' + owner_id: 6962987 + repo_id: 306439799 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 13bb259..82ab345 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,8 +41,8 @@ jobs: # caught here instead of at release. node-version: [20, 22, 24] steps: - - uses: actions/checkout@v7 - - uses: actions/setup-node@v7 + - uses: actions/checkout@v7.0.1 + - uses: actions/setup-node@v7.1.0 with: node-version: ${{ matrix.node-version }} cache: npm @@ -54,15 +54,15 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v7 - - uses: actions/setup-node@v7 + - uses: actions/checkout@v7.0.1 + - uses: actions/setup-node@v7.1.0 with: node-version: 20 cache: npm - run: npm ci # Runs the suite under c8 and enforces the thresholds in .c8rc.json. - run: npm run coverage - - uses: actions/upload-artifact@v7 + - uses: actions/upload-artifact@v7.0.2 if: always() with: name: coverage-lcov @@ -74,8 +74,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v7 - - uses: actions/setup-node@v7 + - uses: actions/checkout@v7.0.1 + - uses: actions/setup-node@v7.1.0 with: node-version: 20 cache: npm @@ -89,8 +89,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v7 - - uses: actions/setup-node@v7 + - uses: actions/checkout@v7.0.1 + - uses: actions/setup-node@v7.1.0 with: node-version: 20 cache: npm diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 294a439..1c03f0a 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -13,8 +13,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v7 - - uses: actions/setup-node@v7 + - uses: actions/checkout@v7.0.1 + - uses: actions/setup-node@v7.1.0 with: node-version: 20 cache: npm @@ -26,8 +26,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v7 - - uses: actions/setup-node@v7 + - uses: actions/checkout@v7.0.1 + - uses: actions/setup-node@v7.1.0 with: node-version: 20 cache: npm