From 3d660743e8f70a291ab25218b595734e77be9111 Mon Sep 17 00:00:00 2001 From: curquiza Date: Mon, 26 Oct 2026 15:55:34 +0100 Subject: [PATCH] ci: pin GitHub Actions to full commit SHAs Mutable tags like @v4 can be silently repointed by the action owner, which is how the trivy-action and kics-github-action compromises were delivered. Pin every action to the 40-character commit SHA that @v4 currently resolves to, keeping the version in a trailing comment so updates stay readable. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7bb8d8b..9eb039b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,9 +10,9 @@ jobs: name: Lint, typecheck, unit and contract tests runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0 + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version-file: .node-version cache: pnpm @@ -40,9 +40,9 @@ jobs: MEILI_MASTER_KEY: masterKey MEILI_NO_ANALYTICS: "true" steps: - - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0 + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version-file: .node-version cache: pnpm