mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
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 <f@lex.la>
This commit is contained in:
34 files changed
+190
-174
No files matched your search
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 }}"
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -81,7 +81,7 @@ jobs:
|
||||
echo "Installing nightly ${rev:-<no revision annotation>}, 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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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: |
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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: |
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
+31
-31
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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" ]
|
||||
|
||||
@@ -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 ]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user