Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Bind release candidate version explicitly

Richard Courtman2ff027a7431e
diff --git a/.github/workflows/build-release-candidate.yml b/.github/workflows/build-release-candidate.yml
index f838562389..15ce06661a 100644
--- a/.github/workflows/build-release-candidate.yml
+++ b/.github/workflows/build-release-candidate.yml
@@ -810,6 +810,7 @@ jobs:
EXPECTED_ARTIFACT_DIGEST: ${{ needs.obtain-release-payload.outputs.artifact_digest }}
EXPECTED_ARTIFACT_NAME: ${{ needs.obtain-release-payload.outputs.artifact_name }}
EXPECTED_COMPILER_RUN_ID: ${{ needs.obtain-release-payload.outputs.compiler_run_id }}
+ VERSION: ${{ inputs.version }}
run: |
set -euo pipefail
python3 scripts/release_candidate_manifest.py verify-local \
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index 9edf4eaaf2..021f2f1c16 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -831,6 +831,11 @@ artifact-selection behaviour.
before applying required native binaries, packaging, update-signing, SBOM
generation, validation, or upload. It must record that verification beside
the final candidate manifest and must not rebuild the verified payload.
+ Every candidate step that reads the requested version under `set -u` must
+ bind `inputs.version` explicitly in that step's environment. In particular,
+ the exact-SHA compiled-payload verifier must not depend on a version binding
+ from an earlier sibling step, because GitHub Actions does not preserve
+ step-local environment variables across steps.
Private signing material and publication credentials must never enter the
PVE compilation job.
PVE jobs must consume their runner users' persistent local Go and npm caches
diff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.go
index adbbf7ad87..9790b3559a 100644
--- a/scripts/installtests/build_release_assets_test.go
+++ b/scripts/installtests/build_release_assets_test.go
@@ -3063,6 +3063,7 @@ func TestReleasePipelinePromotesOneImmutableCandidate(t *testing.T) {
compileJob := workflowJobBlock(t, compilerWorkflow, "compile-release-payload")
obtainPayloadJob := workflowJobBlock(t, candidateWorkflow, "obtain-release-payload")
candidateBuildJob := workflowJobBlock(t, candidateWorkflow, "build")
+ compiledPayloadVerificationStep := workflowStepBlock(t, candidateBuildJob, "Verify exact-SHA compiled payload")
for _, needle := range []string{
`!contains(inputs.version, '-') && 'ubuntu-24.04'`,
@@ -3116,6 +3117,9 @@ func TestReleasePipelinePromotesOneImmutableCandidate(t *testing.T) {
if strings.Contains(compileJob, "PULSE_UPDATE_SIGNING_KEY") {
t.Fatal("release compilation job must not receive private update-signing material")
}
+ if !strings.Contains(compiledPayloadVerificationStep, `VERSION: ${{ inputs.version }}`) {
+ t.Fatal("exact-SHA compiled payload verification must bind the requested release version")
+ }
if strings.Contains(candidateWorkflow, `runs-on: ${{ fromJSON('["self-hosted"`) {
t.Fatal("SignPath release workflow must not contain a self-hosted runner job")
}