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.

Grant release validation workflow required permissions

rcourtmanc0f48b27ba73
diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml
index a89a2ea26b..a0b8fba6a5 100644
--- a/.github/workflows/create-release.yml
+++ b/.github/workflows/create-release.yml
@@ -916,6 +916,9 @@ jobs:
- prepare
- create_release
if: ${{ needs.prepare.outputs.historical_asset_backfill_only != 'true' }}
+ permissions:
+ contents: write
+ issues: write
uses: ./.github/workflows/validate-release-assets.yml
secrets: inherit
with:
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index 6b5977bdc8..0a34a35c1d 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -326,6 +326,11 @@ state. When `.github/workflows/create-release.yml` runs in `draft_only` mode,
it must pass the real draft state into `.github/workflows/validate-release-assets.yml`
so validation blocks or annotates the draft release as a draft, rather than
misclassifying the run as post-publish revalidation.
+That same reusable-validation call boundary also owns permission handoff.
+`.github/workflows/create-release.yml` must explicitly grant the nested
+`.github/workflows/validate-release-assets.yml` call the write scopes it
+requests (`contents: write` and `issues: write`), rather than inheriting the
+release pipeline's top-level read-only default and failing at workflow startup.
That same governed release boundary also owns unpublished draft retry
reconciliation. Re-running `.github/workflows/create-release.yml` for the same
unpublished tag must locate the existing draft release, retarget its git tag
diff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.go
index 944b7bae35..222c316527 100644
--- a/scripts/installtests/build_release_assets_test.go
+++ b/scripts/installtests/build_release_assets_test.go
@@ -119,6 +119,8 @@ func TestCreateReleaseUploadsPowerShellInstaller(t *testing.T) {
`historical_asset_backfill_only=${HISTORICAL_ASSET_BACKFILL_ONLY}`,
`if: ${{ needs.prepare.outputs.historical_asset_backfill_only != 'true' }}`,
`if: ${{ needs.prepare.outputs.historical_asset_backfill_only == 'true' }}`,
+ `permissions:`,
+ `issues: write`,
`./scripts/backfill-release-assets.sh --tag "${{ needs.prepare.outputs.tag }}" --repo "${{ github.repository }}"`,
`./scripts/validate-published-release.sh "${{ needs.prepare.outputs.tag }}" "${{ github.repository }}"`,
}
diff --git a/scripts/release_control/release_promotion_policy_test.py b/scripts/release_control/release_promotion_policy_test.py
index a8bfa2ee42..e8ea810b2b 100644
--- a/scripts/release_control/release_promotion_policy_test.py
+++ b/scripts/release_control/release_promotion_policy_test.py
@@ -273,6 +273,7 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
self.assertIn('historical_asset_backfill_only=${HISTORICAL_ASSET_BACKFILL_ONLY}', content)
self.assertIn("if: ${{ needs.prepare.outputs.historical_asset_backfill_only != 'true' }}", content)
self.assertIn("if: ${{ needs.prepare.outputs.historical_asset_backfill_only == 'true' }}", content)
+ self.assertIn("issues: write", content)
self.assertIn('./scripts/backfill-release-assets.sh --tag "${{ needs.prepare.outputs.tag }}" --repo "${{ github.repository }}"', content)
self.assertIn('./scripts/validate-published-release.sh "${{ needs.prepare.outputs.tag }}" "${{ github.repository }}"', content)
self.assertIn("PULSE_UPDATE_SIGNING_KEY: ${{ secrets.PULSE_UPDATE_SIGNING_KEY }}", content)