From a7e0a6e1870bdb58375cbd0e11f36bf7d1e3200b Mon Sep 17 00:00:00 2001 From: Aleksei Sviridkin Date: Fri, 13 Nov 2026 06:46:22 +0300 Subject: [PATCH] ci(workflows): move GitHub Actions to their Node 24 majors Most of the official actions move one or more majors, onto the Node 24 runtime. The inputs these workflows pass are still accepted, and the contract tests that pin the checkout and App token commits follow. Since checkout v6 the persisted token lives in a separate config file, so unsetting the extra header in .git/config no longer removes it. The release job's checkout stops persisting credentials, so its staging branch push goes out with the App token, and a contract test guards that setting. The flux action stays on v2.8.6, whose tag has to equal the Flux CLI version it installs. A self-hosted runner needs v2.327.1 or newer for the Node 24 checkout, which the Proxmox workflow now states next to its runs-on. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin --- .github/workflows/api-review-gate-fork.yaml | 10 +-- .github/workflows/api-review-gate.yaml | 8 +-- .github/workflows/backport-batch.yaml | 6 +- .github/workflows/build-arm64-nightly.yaml | 6 +- .github/workflows/build-main.yaml | 6 +- .github/workflows/build-release.yaml | 6 +- .github/workflows/changelog-generate.yaml | 10 +-- .github/workflows/changelog-rc.yaml | 10 +-- .github/workflows/codegen-drift.yml | 4 +- .github/workflows/codeql.yml | 8 +-- .github/workflows/cut-prerelease.yaml | 8 +-- .github/workflows/e2e-fork.yaml | 18 +++--- .github/workflows/e2e-isp-hosted.yaml | 4 +- .github/workflows/e2e-proxmox.yaml | 5 +- .github/workflows/e2e-tag.yaml | 10 +-- .github/workflows/issue-triage.yaml | 2 +- .github/workflows/labels.yaml | 6 +- .github/workflows/nightly.yaml | 10 +-- .github/workflows/pr-labeler.yaml | 8 +-- .github/workflows/pr-size.yaml | 2 +- .github/workflows/pre-commit.yml | 8 +-- .github/workflows/promote-rc.yaml | 26 ++++---- .github/workflows/pull-requests-release.yaml | 12 ++-- .github/workflows/pull-requests.yaml | 66 ++++++++++---------- .github/workflows/retention.yaml | 4 +- .github/workflows/scorecard.yml | 6 +- .github/workflows/stale.yaml | 2 +- .github/workflows/tags.yaml | 62 +++++++++--------- .github/workflows/ui-test.yaml | 6 +- .github/workflows/update-releasenotes.yaml | 4 +- .github/workflows/zizmor.yml | 2 +- hack/backport-batch-scheduled.bats | 2 +- hack/backport-batch-verify-job.bats | 2 +- hack/promote-gate-contract.bats | 15 +++++ 34 files changed, 190 insertions(+), 174 deletions(-) diff --git a/.github/workflows/api-review-gate-fork.yaml b/.github/workflows/api-review-gate-fork.yaml index 30611f07e..2e1884e56 100644 --- a/.github/workflows/api-review-gate-fork.yaml +++ b/.github/workflows/api-review-gate-fork.yaml @@ -96,7 +96,7 @@ jobs: steps: - name: Resolve fork PR and claim "API Review Gate" id: r - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 env: HEAD_SHA: ${{ github.event.workflow_run.head_sha }} with: @@ -170,7 +170,7 @@ jobs: GOPROXY: "https://proxy.golang.org|direct" steps: - name: Checkout default branch - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 persist-credentials: false @@ -178,7 +178,7 @@ jobs: # From the default branch's go.mod, and with no cache: a cache saved here # would be keyed in the default branch's scope. - name: Set up Go - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5 + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version-file: go.mod cache: false @@ -246,7 +246,7 @@ jobs: statuses: write steps: - name: Checkout the gate workflow - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: sparse-checkout: .github/workflows/api-review-gate.yaml sparse-checkout-cone-mode: false @@ -266,7 +266,7 @@ jobs: echo "owners=${owners}" >> "$GITHUB_OUTPUT" - name: Report "API Review Gate" commit status - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 env: API_OWNERS: ${{ steps.owners.outputs.owners }} HEAD_SHA: ${{ github.event.workflow_run.head_sha }} diff --git a/.github/workflows/api-review-gate.yaml b/.github/workflows/api-review-gate.yaml index 7e670a7c9..cb03a0955 100644 --- a/.github/workflows/api-review-gate.yaml +++ b/.github/workflows/api-review-gate.yaml @@ -98,7 +98,7 @@ jobs: GOPROXY: "https://proxy.golang.org|direct" steps: - name: Checkout head - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 @@ -109,7 +109,7 @@ jobs: persist-credentials: false - name: Set up Go - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5 + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version-file: go.mod cache: true @@ -247,7 +247,7 @@ jobs: statuses: write steps: - name: Report pending "API Review Gate" commit status - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 env: HEAD_SHA: ${{ github.event.pull_request.head.sha }} RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} @@ -293,7 +293,7 @@ jobs: statuses: write steps: - name: Report "API Review Gate" commit status - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 env: GATE_RESULT: ${{ needs.api-review-gate.result }} SIZEABLE: ${{ needs.api-review-gate.outputs.sizeable }} diff --git a/.github/workflows/backport-batch.yaml b/.github/workflows/backport-batch.yaml index 8196c7468..bbb773560 100644 --- a/.github/workflows/backport-batch.yaml +++ b/.github/workflows/backport-batch.yaml @@ -61,13 +61,13 @@ jobs: fi - name: Checkout - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 persist-credentials: false - name: Set up Go - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5 + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version-file: go.mod cache: false @@ -77,7 +77,7 @@ jobs: - name: Generate GitHub App token id: app-token - uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 with: app-id: ${{ secrets.COZYSTACK_CI_APP_ID }} private-key: ${{ secrets.COZYSTACK_CI_PRIVATE_KEY }} diff --git a/.github/workflows/build-arm64-nightly.yaml b/.github/workflows/build-arm64-nightly.yaml index 781e192d5..c9b4bd2fe 100644 --- a/.github/workflows/build-arm64-nightly.yaml +++ b/.github/workflows/build-arm64-nightly.yaml @@ -43,7 +43,7 @@ jobs: fi - name: Checkout code - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 fetch-tags: true @@ -67,7 +67,7 @@ jobs: fi - name: Login to OCIR - uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 + uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 with: username: ${{ secrets.OCIR_USER }} password: ${{ secrets.OCIR_TOKEN }} @@ -80,7 +80,7 @@ jobs: # limited. - name: Set up Buildx (docker-container driver, docker.io mirror) id: buildx - uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3 + uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 with: driver: docker-container buildkitd-config: hack/buildkitd.toml diff --git a/.github/workflows/build-main.yaml b/.github/workflows/build-main.yaml index 7de6c53f5..885d58a09 100644 --- a/.github/workflows/build-main.yaml +++ b/.github/workflows/build-main.yaml @@ -54,7 +54,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 fetch-tags: true @@ -111,7 +111,7 @@ jobs: fi - name: Login to OCIR - uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 + uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 with: username: ${{ secrets.OCIR_USER }} password: ${{ secrets.OCIR_TOKEN }} @@ -124,7 +124,7 @@ jobs: # isolated buildkit so it never contends with PR builds on the shared one. - name: Set up Buildx (docker-container driver) id: buildx - uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3 + uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 with: driver: docker-container env: diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index 27ad5db73..24025b81d 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -97,7 +97,7 @@ jobs: echo "Building line '$REF_NAME'." - name: Checkout code - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 fetch-tags: true @@ -120,7 +120,7 @@ jobs: fi - name: Login to OCIR - uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 + uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 with: username: ${{ secrets.OCIR_USER }} password: ${{ secrets.OCIR_TOKEN }} @@ -132,7 +132,7 @@ jobs: # with PR builds on the shared embedded builder. - name: Set up Buildx (docker-container driver) id: buildx - uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3 + uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 with: driver: docker-container env: diff --git a/.github/workflows/changelog-generate.yaml b/.github/workflows/changelog-generate.yaml index ff67b4f7e..3deb971f4 100644 --- a/.github/workflows/changelog-generate.yaml +++ b/.github/workflows/changelog-generate.yaml @@ -79,7 +79,7 @@ jobs: # prompt's instructions. The caller owns every write. - name: Generate read-only GitHub App token id: app-token-read - uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 with: app-id: ${{ secrets.COZYSTACK_CI_APP_ID }} private-key: ${{ secrets.COZYSTACK_CI_PRIVATE_KEY }} @@ -131,7 +131,7 @@ jobs: # upper bound" a property of the checkout rather than an instruction the # prompt has to talk the agent into honouring. - name: Checkout rc tag - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ steps.parse.outputs.rc_tag }} fetch-depth: 0 @@ -147,7 +147,7 @@ jobs: # actions/checkout rather than by shelling out to the repo's own tooling. # Gitignored, so the caller's `git add -A` never stages it. - name: Checkout release tooling from the dispatch ref - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ github.ref_name }} path: .release-tooling @@ -216,7 +216,7 @@ jobs: - name: Setup Node.js if: steps.check_changelog.outputs.exists == 'false' - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: 22 @@ -273,7 +273,7 @@ jobs: # promote-rc's open-pr and changelog-rc's commit job download. - name: Upload changelog artifact if: steps.changelog_status.outputs.present == 'true' - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: changelog-v${{ steps.parse.outputs.stable_version }} path: docs/changelogs/v${{ steps.parse.outputs.stable_version }}.md diff --git a/.github/workflows/changelog-rc.yaml b/.github/workflows/changelog-rc.yaml index d7fc28a92..c3830da0b 100644 --- a/.github/workflows/changelog-rc.yaml +++ b/.github/workflows/changelog-rc.yaml @@ -67,7 +67,7 @@ jobs: # parse-rc-tag.sh lives in the tree, so overlay the dispatch ref's hack/ # before calling it. Gitignored; nothing in this job commits. - name: Checkout release tooling from the dispatch ref - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ github.ref_name }} path: .release-tooling @@ -165,7 +165,7 @@ jobs: - name: Generate GitHub App token id: app-token - uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 with: app-id: ${{ secrets.COZYSTACK_CI_APP_ID }} private-key: ${{ secrets.COZYSTACK_CI_PRIVATE_KEY }} @@ -177,7 +177,7 @@ jobs: # parse job (before generation), so it is not re-checked here — a checkout # failure for a branch deleted in the meantime is a rare, self-evident race. - name: Checkout rc staging branch - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ needs.parse.outputs.rc_branch }} fetch-depth: 0 @@ -188,7 +188,7 @@ jobs: # hack/validate-changelog.sh. Overlay the current tooling from the dispatch # ref, exactly as promote-rc and changelog-generate do. Gitignored. - name: Checkout release tooling from the dispatch ref - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ github.ref_name }} path: .release-tooling @@ -198,7 +198,7 @@ jobs: persist-credentials: false - name: Download changelog artifact - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: changelog-v${{ needs.parse.outputs.stable_version }} path: docs/changelogs diff --git a/.github/workflows/codegen-drift.yml b/.github/workflows/codegen-drift.yml index 773a758f7..e3eb42472 100644 --- a/.github/workflows/codegen-drift.yml +++ b/.github/workflows/codegen-drift.yml @@ -39,10 +39,10 @@ jobs: contents: read steps: - name: Checkout code - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Set up Go - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5 + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version-file: go.mod cache: true diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 85b05a66e..b8790956c 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -56,18 +56,18 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Set up Go - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5 + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version-file: go.mod cache: false - name: Initialize CodeQL - uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 + uses: github/codeql-action/init@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3 with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} @@ -93,6 +93,6 @@ jobs: done - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 + uses: github/codeql-action/analyze@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3 with: category: "/language:${{ matrix.language }}" diff --git a/.github/workflows/cut-prerelease.yaml b/.github/workflows/cut-prerelease.yaml index bfd159d94..488c11a1a 100644 --- a/.github/workflows/cut-prerelease.yaml +++ b/.github/workflows/cut-prerelease.yaml @@ -72,7 +72,7 @@ jobs: id: parse env: TAG: ${{ inputs.tag }} - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: script: | const tag = process.env.TAG.trim(); @@ -128,7 +128,7 @@ jobs: - name: Generate GitHub App token id: app-token - uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 with: app-id: ${{ secrets.COZYSTACK_CI_APP_ID }} private-key: ${{ secrets.COZYSTACK_CI_PRIVATE_KEY }} @@ -142,7 +142,7 @@ jobs: # changes or the job is reached by another path. Reads permission via the # app token (fails the step if the API errors — fail closed). - name: Require write access - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: github-token: ${{ steps.app-token.outputs.token }} script: | @@ -168,7 +168,7 @@ jobs: # credential (persist-credentials, default on) so the bare push below is # app-authenticated, and to resolve HEAD. One ref, shallow, no tags. - name: Check out the dispatched branch - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 1 token: ${{ steps.app-token.outputs.token }} diff --git a/.github/workflows/e2e-fork.yaml b/.github/workflows/e2e-fork.yaml index 03c568395..5fb5bbd71 100644 --- a/.github/workflows/e2e-fork.yaml +++ b/.github/workflows/e2e-fork.yaml @@ -95,7 +95,7 @@ jobs: # pull-requests.yaml's e2e-report and docs/agents/e2e-testing.md §10. - name: Resolve fork PR and post "E2E Tests" status id: r - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 env: HEAD_SHA: ${{ github.event.workflow_run.head_sha }} RUN_ID: ${{ github.event.workflow_run.id }} @@ -366,7 +366,7 @@ jobs: # The base repo's own merge ref — safe to fetch, not fork-controlled code # execution. pr.patch is applied as DATA below; nothing from the tree runs. - name: Checkout PR merge ref - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: refs/pull/${{ needs.resolve.outputs.pr_number }}/merge fetch-depth: 0 @@ -387,7 +387,7 @@ jobs: got="$(git rev-parse HEAD^2)" [ "$got" = "$EXPECTED_SHA" ] || { echo "::error::merge ref moved: HEAD^2=$got != resolved $EXPECTED_SHA"; exit 1; } - name: Download pr.patch - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: pr-patch path: _out/assets @@ -396,7 +396,7 @@ jobs: - name: Apply pr.patch (reconstruct digest-pinned tree) run: git apply --3way _out/assets/pr.patch - name: Download OCI image archives - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: pattern: pr-oci-* merge-multiple: true @@ -565,7 +565,7 @@ jobs: SANDBOX_NAME: cozy-e2e-sandbox-fork-${{ github.run_id }} steps: - name: Checkout PR merge ref - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: refs/pull/${{ needs.resolve.outputs.pr_number }}/merge fetch-depth: 0 @@ -593,7 +593,7 @@ jobs: rm -f "$yq_bin" fi - name: Download pr.patch - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: pr-patch path: _out/assets @@ -762,7 +762,7 @@ jobs: _out/chainsaw-report.xml || true - name: Upload chainsaw report if: always() - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: chainsaw-report path: _out/chainsaw-report.xml @@ -773,7 +773,7 @@ jobs: make -C packages/core/testing SANDBOX_NAME=$SANDBOX_NAME collect-report || true - name: Upload cozyreport.tgz if: always() - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: cozyreport path: _out/cozyreport.tgz @@ -801,7 +801,7 @@ jobs: statuses: write steps: - name: Report "E2E Tests" commit status - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 env: PUBLISH_RESULT: ${{ needs.publish.result }} E2E_RESULT: ${{ needs.e2e.result }} diff --git a/.github/workflows/e2e-isp-hosted.yaml b/.github/workflows/e2e-isp-hosted.yaml index 9d17e4508..bd34ddbb7 100644 --- a/.github/workflows/e2e-isp-hosted.yaml +++ b/.github/workflows/e2e-isp-hosted.yaml @@ -81,7 +81,7 @@ jobs: echo "Installing nightly ${rev:-}, packages ${digest}" - name: Checkout code - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 1 persist-credentials: false @@ -174,7 +174,7 @@ jobs: - name: Upload cozyreport.tgz if: always() - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: cozyreport-isp-hosted path: _out/cozyreport.tgz diff --git a/.github/workflows/e2e-proxmox.yaml b/.github/workflows/e2e-proxmox.yaml index 21515016d..2834b5591 100644 --- a/.github/workflows/e2e-proxmox.yaml +++ b/.github/workflows/e2e-proxmox.yaml @@ -36,7 +36,8 @@ jobs: # The job needs a self-hosted runner carrying the `proxmox` label. On a # repository without one a scheduled run would sit in the queue until GitHub # cancels it, so the schedule fires only where the stand is declared; - # manual dispatch always runs. + # manual dispatch always runs. The runner must be v2.327.1 or newer, the + # minimum the checkout README names for its node24 runtime. if: github.event_name == 'workflow_dispatch' || vars.PROXMOX_NIGHTLY == 'true' runs-on: [self-hosted, proxmox] timeout-minutes: 90 @@ -51,7 +52,7 @@ jobs: COZY_KEEP_TENANT: ${{ inputs.keep_tenant == true }} steps: - name: Checkout - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false diff --git a/.github/workflows/e2e-tag.yaml b/.github/workflows/e2e-tag.yaml index d9bba8559..96d8eee36 100644 --- a/.github/workflows/e2e-tag.yaml +++ b/.github/workflows/e2e-tag.yaml @@ -63,7 +63,7 @@ jobs: steps: - name: Validate tag and resolve release id: resolve - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 env: TAG: ${{ inputs.tag }} with: @@ -145,7 +145,7 @@ jobs: # The resolved ref is the digest-pinned staging branch for a prerelease, # or the stable tag's pinned merge tree. - name: Checkout resolved release tree - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ needs.resolve.outputs.tree_ref }} fetch-depth: 1 @@ -283,7 +283,7 @@ jobs: - name: Upload chainsaw report if: always() - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: chainsaw-report-${{ inputs.tag }} path: /tmp/${{ env.SANDBOX_NAME }}/_out/chainsaw-report.xml @@ -328,7 +328,7 @@ jobs: - name: Upload cozyreport.tgz if: always() - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: cozyreport-${{ inputs.tag }} path: /tmp/${{ env.SANDBOX_NAME }}/_out/cozyreport.tgz @@ -382,7 +382,7 @@ jobs: - name: Upload image list if: always() - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: image-list-${{ inputs.tag }} path: | diff --git a/.github/workflows/issue-triage.yaml b/.github/workflows/issue-triage.yaml index 95306f006..87e0806cd 100644 --- a/.github/workflows/issue-triage.yaml +++ b/.github/workflows/issue-triage.yaml @@ -65,7 +65,7 @@ jobs: issues: write steps: - name: Apply triage labels - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: script: | // Labels applied with the workflow's GITHUB_TOKEN do not trigger diff --git a/.github/workflows/labels.yaml b/.github/workflows/labels.yaml index 5d025484e..f5789f5f2 100644 --- a/.github/workflows/labels.yaml +++ b/.github/workflows/labels.yaml @@ -27,7 +27,7 @@ jobs: permissions: contents: read steps: - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Validate labels.yml schema run: | @@ -80,8 +80,8 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 - - uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a # v2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a # v2.3.3 with: config-file: .github/labels.yml delete-other-labels: false diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 57cce6790..f80ef9cf1 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -130,7 +130,7 @@ jobs: echo "Resolved main build: sha=$sha version=$version packages_ref=$packages_ref" - name: Checkout source commit - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ steps.resolve.outputs.sha }} fetch-depth: 1 @@ -197,7 +197,7 @@ jobs: packages: write steps: - name: Checkout source commit - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ needs.mirror.outputs.sha }} fetch-depth: 1 @@ -256,7 +256,7 @@ jobs: packages: read steps: - name: Checkout source commit - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ needs.mirror.outputs.sha }} fetch-depth: 1 @@ -379,7 +379,7 @@ jobs: - name: Upload chainsaw report if: always() - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: chainsaw-report path: _out/chainsaw-report.xml @@ -418,7 +418,7 @@ jobs: - name: Upload cozyreport.tgz if: always() - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: cozyreport path: _out/cozyreport.tgz diff --git a/.github/workflows/pr-labeler.yaml b/.github/workflows/pr-labeler.yaml index 7aca218f7..f4c924def 100644 --- a/.github/workflows/pr-labeler.yaml +++ b/.github/workflows/pr-labeler.yaml @@ -20,7 +20,7 @@ jobs: pull-requests: write steps: - name: Apply labels from PR title - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: script: | // Conventional Commits types accepted by Cozystack (per docs/agents/contributing.md): @@ -319,7 +319,7 @@ jobs: pull-requests: write # close the pull request with a comment steps: - name: Check out the base repository - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false sparse-checkout: hack @@ -354,13 +354,13 @@ jobs: GOPROXY: "https://proxy.golang.org|direct" steps: - name: Check out main - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: main fetch-depth: 0 persist-credentials: false - name: Set up Go - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5 + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version-file: go.mod cache: false diff --git a/.github/workflows/pr-size.yaml b/.github/workflows/pr-size.yaml index 78b8601fc..141d26bfd 100644 --- a/.github/workflows/pr-size.yaml +++ b/.github/workflows/pr-size.yaml @@ -19,7 +19,7 @@ jobs: permissions: pull-requests: write steps: - - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + - uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: script: | const pr = context.payload.pull_request; diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index c2e98276d..ffdd33f1f 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -23,13 +23,13 @@ jobs: contents: read steps: - name: Checkout code - uses: actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 fetch-tags: true - name: Set up Python - uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4 + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: '3.11' @@ -37,7 +37,7 @@ jobs: run: pip install pre-commit - name: Set up Go - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5 + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version-file: go.mod cache: true @@ -99,7 +99,7 @@ jobs: if: ${{ !(startsWith(github.head_ref, 'backport-batch/') && github.event.pull_request.head.repo.full_name == github.repository) }} steps: - name: Checkout head - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 diff --git a/.github/workflows/promote-rc.yaml b/.github/workflows/promote-rc.yaml index d0567018a..17113ea8f 100644 --- a/.github/workflows/promote-rc.yaml +++ b/.github/workflows/promote-rc.yaml @@ -90,7 +90,7 @@ jobs: id: parse env: RC_TAG: ${{ inputs.rc_tag }} - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: script: | const rc = process.env.RC_TAG; @@ -135,7 +135,7 @@ jobs: - name: Verify green RC E2E id: e2e-gate if: ${{ !inputs.skip_e2e_gate }} - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 env: RC_TAG: ${{ steps.parse.outputs.rc_tag }} with: @@ -274,7 +274,7 @@ jobs: steps: - name: Generate GitHub App token id: app-token - uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 with: app-id: ${{ secrets.COZYSTACK_CI_APP_ID }} private-key: ${{ secrets.COZYSTACK_CI_PRIVATE_KEY }} @@ -285,7 +285,7 @@ jobs: # Gate: the rc must exist as a (draft) release and the stable tag must NOT # exist yet. Refuse to promote twice or to an already-shipped version. - name: Validate rc is promotable - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: github-token: ${{ steps.app-token.outputs.token }} script: | @@ -394,7 +394,7 @@ jobs: # The rc's digest-vendored tree (the staging branch the rc build pushed). - name: Checkout rc staging branch - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ needs.parse.outputs.rc_branch }} fetch-depth: 0 @@ -448,7 +448,7 @@ jobs: fi - name: Login to registry (GHCR) - uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 + uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 with: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} @@ -464,7 +464,7 @@ jobs: # actions/checkout rather than by shelling out to the repo's own tooling. # Gitignored, so promote's `git add -A` never stages it. - name: Checkout release tooling from the dispatch ref - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ github.ref_name }} path: .release-tooling @@ -710,7 +710,7 @@ jobs: steps: - name: Generate GitHub App token id: app-token - uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 with: app-id: ${{ secrets.COZYSTACK_CI_APP_ID }} private-key: ${{ secrets.COZYSTACK_CI_PRIVATE_KEY }} @@ -719,7 +719,7 @@ jobs: owner: cozystack - name: Checkout website repo - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: cozystack/website ref: main @@ -875,7 +875,7 @@ jobs: steps: - name: Generate GitHub App token id: app-token - uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 with: app-id: ${{ secrets.COZYSTACK_CI_APP_ID }} private-key: ${{ secrets.COZYSTACK_CI_PRIVATE_KEY }} @@ -887,7 +887,7 @@ jobs: # whether or not the changelog step ran, so it cannot rely on the # `git remote set-url` that only the conditional commit step performs. - name: Checkout stable staging branch - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ needs.promote.outputs.stable_branch }} fetch-depth: 0 @@ -905,7 +905,7 @@ jobs: # actions/checkout rather than by shelling out to the repo's own tooling. # Gitignored, so promote's `git add -A` never stages it. - name: Checkout release tooling from the dispatch ref - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ github.ref_name }} path: .release-tooling @@ -945,7 +945,7 @@ jobs: id: download if: needs.changelog.outputs.present == 'true' && steps.existing.outputs.present == 'false' continue-on-error: true - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: changelog-v${{ needs.promote.outputs.stable_version }} path: docs/changelogs diff --git a/.github/workflows/pull-requests-release.yaml b/.github/workflows/pull-requests-release.yaml index 9874544c1..03821ef68 100644 --- a/.github/workflows/pull-requests-release.yaml +++ b/.github/workflows/pull-requests-release.yaml @@ -55,7 +55,7 @@ jobs: steps: - name: Generate GitHub App token id: app-token - uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 with: app-id: ${{ secrets.COZYSTACK_CI_APP_ID }} private-key: ${{ secrets.COZYSTACK_CI_PRIVATE_KEY }} @@ -64,7 +64,7 @@ jobs: # Extract tag from branch name (branch = release-X.Y.Z*) - name: Extract tag from branch name id: get_tag - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: script: | const branch = context.payload.pull_request.head.ref; @@ -79,7 +79,7 @@ jobs: # Checkout repo & create / push annotated tag - name: Checkout repo - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 # Do NOT persist GITHUB_TOKEN as http.extraheader. Every tag/branch push @@ -96,7 +96,7 @@ jobs: # argument remains the merged packages tree checked out above. This keeps # the final guard independent of the release PR's executable contents. - name: Checkout release tooling from base - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ github.event.pull_request.base.sha }} path: .release-tooling @@ -236,7 +236,7 @@ jobs: # Ensure maintenance branch release-X.Y - name: Ensure maintenance branch release-X.Y - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: github-token: ${{ steps.app-token.outputs.token }} script: | @@ -308,7 +308,7 @@ jobs: # Publish draft release and ensure correct latest flag - name: Publish draft release id: publish - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: github-token: ${{ steps.app-token.outputs.token }} script: | diff --git a/.github/workflows/pull-requests.yaml b/.github/workflows/pull-requests.yaml index 11d01dc15..a2fe2102c 100644 --- a/.github/workflows/pull-requests.yaml +++ b/.github/workflows/pull-requests.yaml @@ -113,7 +113,7 @@ jobs: # still gets posted by `e2e-report`, and a run that dies before that # leaves the merge blocked either way. continue-on-error: true - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 env: HEAD_SHA: ${{ github.event.pull_request.head.sha }} RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} @@ -129,7 +129,7 @@ jobs: description: 'e2e in progress — this run has not reported yet', target_url: RUN_URL, }); - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 # e2e-fork.yaml pushes a fork's images only under names the base tree @@ -240,14 +240,14 @@ jobs: # The default pull_request checkout is GitHub's prospective merge commit, # not just the head branch. That makes base-branch package drift visible. - name: Checkout prospective merge - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 # Execute the verifier from the trusted base SHA. An older rc-derived head # may not contain it, and a PR must not be able to weaken its own guard. - name: Checkout release tooling from base - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ github.event.pull_request.base.sha }} path: .release-tooling @@ -281,7 +281,7 @@ jobs: fi - name: Login to registry (GHCR) - uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 + uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 with: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} @@ -320,7 +320,7 @@ jobs: !contains(github.event.pull_request.labels.*.name, 'release') steps: - name: Checkout code - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 # The module cache is restored from the key build-main.yaml writes on @@ -412,7 +412,7 @@ jobs: run: python3 hack/check-helm-document-indices.py "$(git merge-base HEAD "origin/$BASE_REF")" - name: Upload unit test report if: always() - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: bats-unit-report path: _out/test-reports/ @@ -440,7 +440,7 @@ jobs: pkg: ${{ fromJSON(needs.plan.outputs.matrix) }} steps: - name: Checkout code - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 fetch-tags: true @@ -457,7 +457,7 @@ jobs: fi - name: Login to GitHub Container Registry if: ${{ !github.event.pull_request.head.repo.fork }} - uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 + uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 with: username: ${{ secrets.OCIR_USER }} password: ${{ secrets.OCIR_TOKEN }} @@ -476,7 +476,7 @@ jobs: # OCIR auth) so buildx forwards push/cache auth to the container builder. - name: Set up Buildx (docker-container driver, docker.io mirror) id: buildx - uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0 + uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 with: driver: docker-container buildkitd-config: hack/buildkitd.toml @@ -539,7 +539,7 @@ jobs: echo "safe=${safe}" >> "$GITHUB_OUTPUT" echo "Fragment for ${PKG}:"; git --no-pager diff --stat HEAD - name: Upload patch fragment - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: pr-patch-fragment-${{ steps.frag.outputs.safe }} path: _out/fragments/${{ steps.frag.outputs.safe }}.patch @@ -548,7 +548,7 @@ jobs: # (OCI_EXPORT_DIR above). Upload them for e2e-fork.yaml to push by digest. - name: Upload OCI image archives (fork PR) if: ${{ github.event.pull_request.head.repo.fork }} - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: pr-oci-${{ steps.frag.outputs.safe }} path: _out/oci/*.oci.tar @@ -587,7 +587,7 @@ jobs: contents: read steps: - name: Checkout code - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 fetch-tags: true @@ -598,7 +598,7 @@ jobs: fi - name: Login to GitHub Container Registry if: ${{ !github.event.pull_request.head.repo.fork }} - uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 + uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 with: username: ${{ secrets.OCIR_USER }} password: ${{ secrets.OCIR_TOKEN }} @@ -610,7 +610,7 @@ jobs: # anonymous-pull rate limit; see the build job for the full rationale. - name: Set up Buildx (docker-container driver, docker.io mirror) id: buildx - uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0 + uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 with: driver: docker-container buildkitd-config: hack/buildkitd.toml @@ -638,7 +638,7 @@ jobs: git diff --binary HEAD > _out/fragments/talos.patch echo "Talos fragment:"; git --no-pager diff --stat HEAD - name: Upload Talos patch fragment - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: pr-patch-fragment-talos path: _out/fragments/talos.patch @@ -646,7 +646,7 @@ jobs: # Fork PR only: upload the Talos image OCI archive for e2e-fork.yaml. - name: Upload Talos OCI image archive (fork PR) if: ${{ github.event.pull_request.head.repo.fork }} - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: pr-oci-talos path: _out/oci/*.oci.tar @@ -677,7 +677,7 @@ jobs: contents: read steps: - name: Checkout code - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 fetch-tags: true @@ -686,7 +686,7 @@ jobs: with: version: "2.8.6" - name: Download patch fragments - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: pattern: pr-patch-fragment-* merge-multiple: true @@ -713,7 +713,7 @@ jobs: fi - name: Login to GitHub Container Registry if: ${{ !github.event.pull_request.head.repo.fork }} - uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 + uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 with: username: ${{ secrets.OCIR_USER }} password: ${{ secrets.OCIR_TOKEN }} @@ -833,7 +833,7 @@ jobs: # anonymous-pull rate limit; see the build job for the full rationale. - name: Set up Buildx (docker-container driver, docker.io mirror) id: buildx - uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0 + uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 with: driver: docker-container buildkitd-config: hack/buildkitd.toml @@ -867,7 +867,7 @@ jobs: # Fork PR only: upload the operator image OCI archive for e2e-fork.yaml. - name: Upload installer OCI image archive (fork PR) if: ${{ github.event.pull_request.head.repo.fork }} - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: pr-oci-installer path: _out/oci/*.oci.tar @@ -880,7 +880,7 @@ jobs: git diff --binary HEAD > _out/assets/pr.patch echo "Final pr.patch:"; git --no-pager diff --stat HEAD - name: Upload git diff patch - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: pr-patch path: _out/assets/pr.patch @@ -908,7 +908,7 @@ jobs: steps: - name: Generate GitHub App token id: app-token - uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 with: app-id: ${{ secrets.COZYSTACK_CI_APP_ID }} private-key: ${{ secrets.COZYSTACK_CI_PRIVATE_KEY }} @@ -918,7 +918,7 @@ jobs: - name: Checkout code if: contains(github.event.pull_request.labels.*.name, 'release') - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 fetch-tags: true @@ -926,7 +926,7 @@ jobs: - name: Extract tag from PR branch (release PR) if: contains(github.event.pull_request.labels.*.name, 'release') id: get_tag - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: script: | const branch = context.payload.pull_request.head.ref; @@ -945,7 +945,7 @@ jobs: # asset's presence is still checked in e2e-tag.yaml and promote-rc.yaml. - name: Verify draft release exists (release PR) if: contains(github.event.pull_request.labels.*.name, 'release') - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: github-token: ${{ steps.app-token.outputs.token }} script: | @@ -1034,7 +1034,7 @@ jobs: # fetch-depth: 0 is required by the "Select E2E tests" step so that # `git diff origin/${BASE_REF}...HEAD` can resolve the base ref. - name: Checkout code - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 @@ -1043,7 +1043,7 @@ jobs: # lane consumes no nocloud asset and waits on no Talos build. - name: Download PR patch if: "!contains(github.event.pull_request.labels.*.name, 'release')" - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: pr-patch path: _out/assets @@ -1264,7 +1264,7 @@ jobs: - name: Upload chainsaw report if: always() - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: chainsaw-report path: _out/chainsaw-report.xml @@ -1317,7 +1317,7 @@ jobs: - name: Upload cozyreport.tgz if: always() - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: cozyreport path: _out/cozyreport.tgz @@ -1329,7 +1329,7 @@ jobs: - name: Upload image list if: always() - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: image-list path: _out/images.txt @@ -1453,7 +1453,7 @@ jobs: statuses: write steps: - name: Report "E2E Tests" commit status - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 env: PLAN_RESULT: ${{ needs.plan.result }} CODE: ${{ needs.plan.outputs.code }} diff --git a/.github/workflows/retention.yaml b/.github/workflows/retention.yaml index 23aba46bb..9b6a50565 100644 --- a/.github/workflows/retention.yaml +++ b/.github/workflows/retention.yaml @@ -65,7 +65,7 @@ jobs: pull-requests: read steps: - name: Checkout - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false @@ -76,7 +76,7 @@ jobs: - name: Generate GitHub App token id: app-token - uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 with: app-id: ${{ secrets.COZYSTACK_CI_APP_ID }} private-key: ${{ secrets.COZYSTACK_CI_PRIVATE_KEY }} diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index c25295dcd..055e6c7f1 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -25,12 +25,12 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Run analysis - uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3 + uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4 with: results_file: results.sarif results_format: sarif @@ -50,7 +50,7 @@ jobs: # first-party findings. The public scorecard.dev badge (publish_results # above) is the canonical view of these results. - name: Upload SARIF as artifact - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: scorecard-sarif path: results.sarif diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml index d8b40aadc..c2e7b4bfd 100644 --- a/.github/workflows/stale.yaml +++ b/.github/workflows/stale.yaml @@ -21,7 +21,7 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/stale@1e223db275d687790206a7acac4d1a11bd6fe629 # v10 + - uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0 with: stale-issue-label: lifecycle/stale stale-pr-label: lifecycle/stale diff --git a/.github/workflows/tags.yaml b/.github/workflows/tags.yaml index f35ca8265..e108e6765 100644 --- a/.github/workflows/tags.yaml +++ b/.github/workflows/tags.yaml @@ -44,7 +44,7 @@ jobs: # rebuilt, which is the safe direction. - name: Check if release already exists id: check_release - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: script: | const tag = context.ref.replace('refs/tags/', ''); @@ -59,7 +59,7 @@ jobs: - name: Checkout code if: steps.check_release.outputs.release_exists == 'false' - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 fetch-tags: true @@ -73,7 +73,7 @@ jobs: - name: Login to GHCR if: steps.check_release.outputs.release_exists == 'false' - uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 + uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 with: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} @@ -83,7 +83,7 @@ jobs: - name: Login to OCIR (build cache) if: steps.check_release.outputs.release_exists == 'false' - uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 + uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 with: username: ${{ secrets.OCIR_USER }} password: ${{ secrets.OCIR_TOKEN }} @@ -97,7 +97,7 @@ jobs: - name: Set up Buildx (docker-container driver, docker.io mirror) if: steps.check_release.outputs.release_exists == 'false' id: buildx - uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3 + uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 with: driver: docker-container buildkitd-config: hack/buildkitd.toml @@ -175,7 +175,7 @@ jobs: # the draft and skips straight to changelog/website. - name: Check if release already exists id: check_release - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: script: | const tag = context.ref.replace('refs/tags/', ''); @@ -200,7 +200,7 @@ jobs: - name: Parse tag if: steps.check_release.outputs.release_exists == 'false' id: tag - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: script: | const ref = context.ref.replace('refs/tags/', ''); // e.g. v0.31.5-rc.1 @@ -235,7 +235,7 @@ jobs: - name: Get base branch if: steps.check_release.outputs.release_exists == 'false' id: get_base - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: script: | const baseRef = context.payload.base_ref; @@ -253,7 +253,7 @@ jobs: - name: Checkout code if: steps.check_release.outputs.release_exists == 'false' - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 fetch-tags: true @@ -269,7 +269,7 @@ jobs: - name: Login to GHCR if: steps.check_release.outputs.release_exists == 'false' - uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 + uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 with: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} @@ -283,7 +283,7 @@ jobs: # cold (the persistent runner used to warm-start from local buildkit state). - name: Login to OCIR (build cache) if: steps.check_release.outputs.release_exists == 'false' - uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 + uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 with: username: ${{ secrets.OCIR_USER }} password: ${{ secrets.OCIR_TOKEN }} @@ -299,7 +299,7 @@ jobs: - name: Set up Buildx (docker-container driver, docker.io mirror) if: steps.check_release.outputs.release_exists == 'false' id: buildx - uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3 + uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 with: driver: docker-container buildkitd-config: hack/buildkitd.toml @@ -359,7 +359,7 @@ jobs: - name: Upload the stamped tree and the pushed tags if: steps.check_release.outputs.release_exists == 'false' - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: release-tree path: ${{ runner.temp }}/release-tree/ @@ -372,7 +372,7 @@ jobs: # talos image and are not release assets. - name: Upload the assets if: steps.check_release.outputs.release_exists == 'false' - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: release-assets path: | @@ -407,7 +407,7 @@ jobs: - name: Generate GitHub App token if: needs.build-amd64.outputs.release_exists == 'false' id: app-token - uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 with: app-id: ${{ secrets.COZYSTACK_CI_APP_ID }} private-key: ${{ secrets.COZYSTACK_CI_PRIVATE_KEY }} @@ -415,10 +415,11 @@ jobs: - name: Checkout code if: needs.build-amd64.outputs.release_exists == 'false' - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 fetch-tags: true + persist-credentials: false # The stitch and the multi-arch gate read the registry with skopeo and # the tree with mikefarah yq; the republish needs flux and helm. @@ -437,7 +438,7 @@ jobs: - name: Login to GHCR if: needs.build-amd64.outputs.release_exists == 'false' - uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 + uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 with: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} @@ -447,14 +448,14 @@ jobs: - name: Download the amd64 build if: needs.build-amd64.outputs.release_exists == 'false' - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: release-tree path: ${{ runner.temp }}/release-tree - name: Download the assets if: needs.build-amd64.outputs.release_exists == 'false' - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: release-assets path: _out/assets @@ -491,7 +492,6 @@ jobs: git config user.name "cozystack-ci[bot]" git config user.email "274107086+cozystack-ci[bot]@users.noreply.github.com" git remote set-url origin https://x-access-token:${APP_TOKEN}@github.com/${GITHUB_REPOSITORY} - git config --unset-all http.https://github.com/.extraheader || true git add . git commit -m "Prepare release ${GITHUB_REF#refs/tags/}" -s || echo "No changes to commit" @@ -506,7 +506,7 @@ jobs: - name: Create / reuse draft release if: needs.build-amd64.outputs.release_exists == 'false' id: release - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: script: | const tag = '${{ needs.build-amd64.outputs.tag }}'; @@ -580,7 +580,7 @@ jobs: # draft status. prerelease:true keeps it off the "Latest release" pointer. - name: Publish rc release if: needs.build-amd64.outputs.release_exists == 'false' && needs.build-amd64.outputs.is_rc == 'true' - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: github-token: ${{ steps.app-token.outputs.token }} script: | @@ -707,7 +707,7 @@ jobs: steps: - name: Generate GitHub App token id: app-token - uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 with: app-id: ${{ secrets.COZYSTACK_CI_APP_ID }} private-key: ${{ secrets.COZYSTACK_CI_PRIVATE_KEY }} @@ -719,7 +719,7 @@ jobs: # regardless of whether the agent follows the prompt's instructions. - name: Generate read-only GitHub App token id: app-token-read - uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 with: app-id: ${{ secrets.COZYSTACK_CI_APP_ID }} private-key: ${{ secrets.COZYSTACK_CI_PRIVATE_KEY }} @@ -730,7 +730,7 @@ jobs: - name: Parse tag id: tag - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: script: | const ref = context.ref.replace('refs/tags/', ''); @@ -751,7 +751,7 @@ jobs: # contents. The Create changelog branch step below resets the file # onto a fresh branch from origin/main for the PR. - name: Checkout release tag - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ steps.tag.outputs.tag }} fetch-depth: 0 @@ -808,7 +808,7 @@ jobs: - name: Setup Node.js if: steps.check_changelog.outputs.exists == 'false' && steps.check_changelog.outputs.at_tag == 'false' - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: 22 @@ -881,7 +881,7 @@ jobs: - name: Create PR for changelog if: steps.check_changelog.outputs.exists == 'false' - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: github-token: ${{ steps.app-token.outputs.token }} script: | @@ -965,7 +965,7 @@ jobs: steps: - name: Generate GitHub App token id: app-token - uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 with: app-id: ${{ secrets.COZYSTACK_CI_APP_ID }} private-key: ${{ secrets.COZYSTACK_CI_PRIVATE_KEY }} @@ -973,7 +973,7 @@ jobs: - name: Parse tag id: tag - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: script: | const ref = context.ref.replace('refs/tags/', ''); @@ -987,7 +987,7 @@ jobs: core.setOutput('version', version); // 0.22.0 - name: Checkout website repo - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: cozystack/website token: ${{ steps.app-token.outputs.token }} diff --git a/.github/workflows/ui-test.yaml b/.github/workflows/ui-test.yaml index 84e39bd76..e73d5f68f 100644 --- a/.github/workflows/ui-test.yaml +++ b/.github/workflows/ui-test.yaml @@ -28,21 +28,21 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: # No git pushes from this workflow; don't leave the token in .git/config # where a later `pnpm install` step could read it. persist-credentials: false - name: Set up pnpm - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 + uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 with: # The monorepo root has no package.json; read the pnpm version from # the console workspace manifest (packageManager field). package_json_file: packages/system/dashboard/images/console/package.json - name: Set up Node.js - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: 22 cache: pnpm diff --git a/.github/workflows/update-releasenotes.yaml b/.github/workflows/update-releasenotes.yaml index 697b3995d..7669a3d60 100644 --- a/.github/workflows/update-releasenotes.yaml +++ b/.github/workflows/update-releasenotes.yaml @@ -38,12 +38,12 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 - name: Update release notes from changelogs - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: script: | const fs = require('fs'); diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 57265c1a8..6d0ee9b48 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -38,7 +38,7 @@ jobs: contents: read steps: - name: Checkout repository - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false diff --git a/hack/backport-batch-scheduled.bats b/hack/backport-batch-scheduled.bats index e844869e8..2d327f783 100644 --- a/hack/backport-batch-scheduled.bats +++ b/hack/backport-batch-scheduled.bats @@ -165,7 +165,7 @@ notify --line release-1.6 --push" ] # The App token covers this repository alone, with Contents and Pull # requests and nothing else: no workflows, no packages. mint='.jobs.batch.steps[] | select(.id == "app-token")' - [ "$(yq -r "$mint | .uses" "$WF")" = "actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547" ] + [ "$(yq -r "$mint | .uses" "$WF")" = "actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1" ] [ "$(yq -r "$mint | .with.owner" "$WF")" = "cozystack" ] [ "$(yq -r "$mint | .with.repositories" "$WF")" = "cozystack" ] [ "$(yq -r "$mint | .with | to_entries | map(select(.key | test(\"^permission-\"))) | map(.key + \"=\" + .value) | join(\",\")" "$WF")" = "permission-contents=write,permission-pull-requests=write" ] diff --git a/hack/backport-batch-verify-job.bats b/hack/backport-batch-verify-job.bats index 5cc0c1597..b3545d4c9 100644 --- a/hack/backport-batch-verify-job.bats +++ b/hack/backport-batch-verify-job.bats @@ -33,7 +33,7 @@ JOB='.jobs.backport-batch-verify' } @test "main is checked out, without credentials, and the head only fetched" { - [ "$(yq -r "$JOB.steps[0].uses" "$WF")" = "actions/checkout@11d5960a326750d5838078e36cf38b85af677262" ] + [ "$(yq -r "$JOB.steps[0].uses" "$WF")" = "actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1" ] [ "$(yq -r "$JOB.steps[0].with.ref" "$WF")" = "main" ] [ "$(yq -r "$JOB.steps[0].with.persist-credentials" "$WF")" = "false" ] [ "$(yq -r "[$JOB.steps[] | select(.uses == \"actions/checkout*\")] | length" "$WF")" -eq 1 ] diff --git a/hack/promote-gate-contract.bats b/hack/promote-gate-contract.bats index 65b7916eb..ebee33cb4 100644 --- a/hack/promote-gate-contract.bats +++ b/hack/promote-gate-contract.bats @@ -257,6 +257,21 @@ code_lines() { [ "${count:-0}" -eq 1 ] } +@test "prepare-release checkout does not persist credentials so the staging-branch push carries the app token" { + block="$(job_block prepare-release "$TAGS")" + [ -n "$block" ] + checkout="$(printf '%s\n' "$block" | awk ' + /^ - name: Checkout code$/ { inside = 1; next } + /^ - name: / { inside = 0 } + inside')" + [ -n "$checkout" ] + + # actions/checkout v6+ writes the extraheader into a file it includes via + # includeIf, out of reach of a `git config --unset-all` on the repo config. + count="$(printf '%s\n' "$checkout" | code_lines | grep -cF 'persist-credentials: false' || true)" + [ "${count:-0}" -eq 1 ] +} + # ── rc-e2e's reusable-workflow permission ceiling ──────────────────────────── # tags.yaml runs only on tag pushes, so no PR lane can ever exercise these two # facts together. They are pinned here because getting them wrong does not