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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
fix(release): allow draft asset smoke access
rcourtman52fbcfd341bd
diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.ymlindex 93b643152b..98b7e4960c 100644--- a/.github/workflows/create-release.yml+++ b/.github/workflows/create-release.yml@@ -1289,7 +1289,10 @@ jobs:- validate_release_assetsif: ${{ always() && needs.prepare.result == 'success' && needs.create_release.result == 'success' && needs.validate_release_assets.result == 'success' && needs.prepare.outputs.historical_asset_backfill_only != 'true' && github.event.inputs.draft_only != 'true' }}permissions:- contents: read+ # GitHub's release API requires write-level repository access to read+ # assets from an unpublished draft release. The called workflow only+ # performs GET requests, but a read-scoped GITHUB_TOKEN receives 403.+ contents: writeuses: ./.github/workflows/install-sh-smoke.ymlsecrets: inheritwith:diff --git a/.github/workflows/install-sh-smoke.yml b/.github/workflows/install-sh-smoke.ymlindex fb215f050c..f52a7bf85a 100644--- a/.github/workflows/install-sh-smoke.yml+++ b/.github/workflows/install-sh-smoke.yml@@ -94,6 +94,10 @@ jobs:smoke:runs-on: ubuntu-24.04timeout-minutes: 15+ permissions:+ # Unpublished draft release metadata and assets are unavailable to a+ # read-scoped GITHUB_TOKEN even though this job only performs GETs.+ contents: writesteps:- name: Checkout repository (for README key extraction)uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.mdindex 07c950d2f5..a8995408ca 100644--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md@@ -1771,6 +1771,13 @@ That same reusable-validation call boundary also owns permission handoff.`.github/workflows/validate-release-assets.yml` call the write scopes itrequests (`contents: write` and `issues: write`), rather than inheriting therelease pipeline's top-level read-only default and failing at workflow startup.+The staged installer-smoke boundary owns the same fail-closed handoff for+unpublished assets. GitHub requires write-level repository access to read draft+release metadata and asset bytes, even when the consumer only performs GET+requests. The `install_sh_smoke` call in `.github/workflows/create-release.yml`+and the `smoke` job in `.github/workflows/install-sh-smoke.yml` must therefore+grant `contents: write`; the workflow-level default remains read-only and the+smoke job must not receive unrelated write scopes.That same validation status boundary must preserve release identity when itannotates a draft or failed release. Every release-body or draft-state PATCHfrom `.github/workflows/validate-release-assets.yml` must carry the intendeddiff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.goindex 2d2e3a2b05..c531fb06a0 100644--- a/scripts/installtests/build_release_assets_test.go+++ b/scripts/installtests/build_release_assets_test.go@@ -433,6 +433,10 @@ func TestCreateReleaseUploadsPowerShellInstaller(t *testing.T) {t.Fatalf("create-release.yml job %s must skip historical backfill and draft-only runs before invoking downstream workflow_call", job)}}+ installSmokeJob := workflowJobBlock(t, workflow, "install_sh_smoke")+ if !strings.Contains(installSmokeJob, "contents: write") {+ t.Fatal("create-release.yml install_sh_smoke must grant contents: write so the called workflow can read unpublished draft assets")+ }readinessJob := workflowJobBlock(t, workflow, "release_readiness")if !strings.Contains(readinessJob, publishedReleaseGuard) {t.Fatal("release_readiness must skip historical backfill and draft-only runs")@@ -1828,7 +1832,8 @@ func TestBuildReleasePackagesPulseMcpForAllPlatforms(t *testing.T) {// cannot return.func TestInstallShSmokeWorkflowPresent(t *testing.T) {- assertFileContainsAll(t, repoFile(".github", "workflows", "install-sh-smoke.yml"),+ workflowPath := repoFile(".github", "workflows", "install-sh-smoke.yml")+ assertFileContainsAll(t, workflowPath,// Inputs and triggers.`name: install.sh Smoke (Release Assets)`,`workflow_call:`,@@ -1863,6 +1868,15 @@ func TestInstallShSmokeWorkflowPresent(t *testing.T) {`curl -fsS http://127.0.0.1:7655/api/version`,`Installed version mismatch. Expected`,)++ workflowBytes, err := os.ReadFile(workflowPath)+ if err != nil {+ t.Fatalf("read install-sh-smoke workflow: %v", err)+ }+ smokeJob := workflowJobBlock(t, string(workflowBytes), "smoke")+ if !strings.Contains(smokeJob, "contents: write") {+ t.Fatal("install-sh-smoke.yml smoke job must grant contents: write to read unpublished draft release assets")+ }}func TestPromoteFloatingTagsReachableViaWorkflowCall(t *testing.T) {