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.

Keep Actions workflows on Node 24

pulse-triage[bot]6d8546b756a0
diff --git a/.github/workflows/README.md b/.github/workflows/README.md
index 77b7e31cde..3ee12ee957 100644
--- a/.github/workflows/README.md
+++ b/.github/workflows/README.md
@@ -22,6 +22,13 @@ That exception can only run the protected default-branch helper, has no shell,
cache, artifact, container, secret, or pull-request checkout ingress, and is
machine-checked down to its permissions, dependencies, and generated program.
+JavaScript action pins that previously selected Node 20 also belong to a
+reviewed Node 24 allowlist. Release-candidate artifact downloads use
+`actions/download-artifact` v8.0.1 and issue automation uses
+`actions/github-script` v8.0.0; the audit rejects a return to their Node 20
+pins before GitHub removes that runtime from hosted runners on 23 September
+2026.
+
`workflow_run` is also a privileged trigger. Every handler must filter its
upstream workflow to the literal canonical branch `main`, and checkout steps
must not select code through triggering-run head metadata. These handlers also
diff --git a/.github/workflows/build-release-candidate.yml b/.github/workflows/build-release-candidate.yml
index 9be648cf3f..d363639c35 100644
--- a/.github/workflows/build-release-candidate.yml
+++ b/.github/workflows/build-release-candidate.yml
@@ -527,14 +527,14 @@ jobs:
- name: Download legacy signed binaries
if: ${{ inputs.windows_signing_backend == 'legacy-pfx' }}
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: legacy-signed-windows-agent-${{ github.sha }}-${{ inputs.version }}
path: unsigned-native-agent-binaries
- name: Download SignPath signing request record
if: ${{ inputs.windows_signing_backend == 'signpath' }}
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: windows-signing-request-${{ github.sha }}-${{ inputs.version }}
path: windows-signing-request
@@ -854,21 +854,21 @@ jobs:
- name: Download signed macOS binaries
if: ${{ inputs.require_macos_signing }}
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: signed-macos-agent-${{ github.sha }}-${{ inputs.version }}
path: native-agent-binaries
- name: Download signed Windows binaries
if: ${{ inputs.require_windows_signing }}
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: signed-windows-agent-${{ github.sha }}-${{ inputs.version }}
path: native-agent-binaries
- name: Download Windows signing evidence
if: ${{ inputs.require_windows_signing }}
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: windows-signing-evidence-${{ github.sha }}-${{ inputs.version }}
path: release-candidate-manifest
diff --git a/.github/workflows/close-needs-retest-timeout.yml b/.github/workflows/close-needs-retest-timeout.yml
index e7f34f7c22..383b2fc91c 100644
--- a/.github/workflows/close-needs-retest-timeout.yml
+++ b/.github/workflows/close-needs-retest-timeout.yml
@@ -38,7 +38,7 @@ jobs:
sparse-checkout-cone-mode: false
- name: Auto-close outdated retest issues
- uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
+ uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
STALE_DAYS: ${{ github.event.inputs.stale_days || '7' }}
DRY_RUN: ${{ github.event.inputs.dry_run || 'false' }}
diff --git a/.github/workflows/issue-version-label-sync.yml b/.github/workflows/issue-version-label-sync.yml
index 767ec15209..7721742658 100644
--- a/.github/workflows/issue-version-label-sync.yml
+++ b/.github/workflows/issue-version-label-sync.yml
@@ -32,7 +32,7 @@ jobs:
sparse-checkout-cone-mode: false
- name: Sync issue version metadata
- uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
+ uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
github-token: ${{ steps.triage-token.outputs.token }}
script: |
diff --git a/.github/workflows/issue-version-retest-comment.yml b/.github/workflows/issue-version-retest-comment.yml
index e4390de78e..7aa3a15264 100644
--- a/.github/workflows/issue-version-retest-comment.yml
+++ b/.github/workflows/issue-version-retest-comment.yml
@@ -33,7 +33,7 @@ jobs:
sparse-checkout-cone-mode: false
- name: Post retest guidance when needed
- uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
+ uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
github-token: ${{ steps.triage-token.outputs.token }}
script: |
diff --git a/.github/workflows/reclaim-closed-pr-capacity.yml b/.github/workflows/reclaim-closed-pr-capacity.yml
index 8b457c906b..f53ea018cc 100644
--- a/.github/workflows/reclaim-closed-pr-capacity.yml
+++ b/.github/workflows/reclaim-closed-pr-capacity.yml
@@ -26,7 +26,7 @@ jobs:
sparse-checkout-cone-mode: false
- name: Cancel unfinished runs for the closed head
- uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
+ uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
const cleanup = require(`${process.env.GITHUB_WORKSPACE}/.github/scripts/reclaim-closed-pr-capacity.cjs`);
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index a25039c2ef..fcf9b28158 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -2146,6 +2146,11 @@ artifact-selection behaviour.
opt into setup-node dependency caching. Those jobs consume or qualify the
candidate at a release trust boundary, so mutable cache contents must not
become an undeclared release input.
+ Release-candidate artifact transfers must use the reviewed Node 24
+ `actions/download-artifact` v8.0.1 pin. Issue automation must use the
+ reviewed Node 24 `actions/github-script` v8.0.0 pin. The workflow trust
+ audit must reject older pins after GitHub's announced Node 20 removal so a
+ release cannot become unbuildable through action-runtime retirement.
Whenever that policy changes, update the owning workflow/install proof files
in `scripts/installtests/build_release_assets_test.go` and
`scripts/release_control/release_promotion_policy_*` in the same slice.
@@ -5064,9 +5069,13 @@ or shell ingress. Pull-request workflows may not reference repository secrets,
including values treated as public configuration. Exact-SHA compilation and
pre-publication release smoke explicitly disable setup-node's automatic npm
cache and do not request dependency caches, preventing mutable cache state from
-becoming release input. Dependency refreshes must update the central
-workflow-trust allowlist and its regression proof together, so a routine pin
-change cannot silently remove this release-automation trust boundary.
+becoming release input. Candidate artifact downloads use the reviewed Node 24
+`actions/download-artifact` v8.0.1 pin, and issue automation uses the reviewed
+Node 24 `actions/github-script` v8.0.0 pin; older runtime pins are rejected
+before GitHub's 23 September 2026 Node 20 removal. Dependency refreshes must
+update the central workflow-trust allowlist and its regression proof together,
+so a routine pin change cannot silently remove this release-automation trust
+boundary.
`scripts/check_workflow_trust.py`, `scripts/tests/test_workflow_trust.py`, and
`scripts/installtests/build_release_assets_test.go` pin the policy and the
release-workflow integration.
diff --git a/scripts/check_workflow_trust.py b/scripts/check_workflow_trust.py
index 752cde1111..c5873f1cbf 100644
--- a/scripts/check_workflow_trust.py
+++ b/scripts/check_workflow_trust.py
@@ -155,7 +155,7 @@ GENERATED_CODE_ACTION_INPUTS = {
SAFE_PULL_REQUEST_TARGET_WORKFLOW = "reclaim-closed-pr-capacity.yml"
SAFE_PULL_REQUEST_TARGET_ACTIONS = (
"actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1",
- "actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b",
+ "actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd",
)
# v7.0.1 includes checkout's fail-closed fork-PR protection for privileged
# pull_request_target and workflow_run events. Keep this exact-pin allowlist
@@ -163,6 +163,18 @@ SAFE_PULL_REQUEST_TARGET_ACTIONS = (
PROTECTED_CHECKOUT_PINS = frozenset(
{"3d3c42e5aac5ba805825da76410c181273ba90b1"}
)
+# GitHub removes Node 20 from hosted runners on 2026-09-23. These JavaScript
+# actions had Node 20 pins in this repository, so keep their reviewed Node 24
+# replacements explicit rather than allowing a dependency refresh to restore
+# an action runtime that the release path can no longer execute.
+REVIEWED_NODE24_ACTION_PINS = {
+ "actions/download-artifact@": frozenset(
+ {"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c"}
+ ),
+ "actions/github-script@": frozenset(
+ {"ed597411d8f924073f98dfc5c65a23a2325f34cd"}
+ ),
+}
WRITE_CREDENTIAL_RATIONALE = "# required: authenticated git writes"
PERMISSIONS_RE = re.compile(
rf"^(\s*){_yaml_key('permissions')}\s*:\s*(.*?)\s*$"
@@ -1521,6 +1533,23 @@ def audit_workflow(path: Path) -> list[Finding]:
)
continue
+ reviewed_runtime_pins = next(
+ (
+ pins
+ for prefix, pins in REVIEWED_NODE24_ACTION_PINS.items()
+ if dependency_lower.startswith(prefix)
+ ),
+ None,
+ )
+ if reviewed_runtime_pins is not None and ref not in reviewed_runtime_pins:
+ findings.append(
+ Finding(
+ path,
+ line_number,
+ "action pin is outside the reviewed Node 24 runtime baseline",
+ )
+ )
+
# GitHub repository names are case-insensitive, so normalize before
# applying checkout-specific credential controls.
if not dependency.lower().startswith(CHECKOUT_PREFIX):
diff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.go
index e4de289354..0d0a6a0984 100644
--- a/scripts/installtests/build_release_assets_test.go
+++ b/scripts/installtests/build_release_assets_test.go
@@ -3243,6 +3243,13 @@ func TestReleasePipelinePromotesOneImmutableCandidate(t *testing.T) {
createWorkflow := string(createBytes)
candidateWorkflow := string(candidateBytes)
+ node24DownloadArtifact := "actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1"
+ if count := strings.Count(candidateWorkflow, node24DownloadArtifact); count != 5 {
+ t.Fatalf("release candidate must use the reviewed Node 24 artifact downloader for all five signed-artifact transfers, got %d", count)
+ }
+ if strings.Contains(candidateWorkflow, "actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093") {
+ t.Fatal("release candidate must not retain the Node 20 artifact downloader")
+ }
compilerWorkflow := string(compilerBytes)
compileScriptBytes, err := os.ReadFile(repoFile("scripts", "build-release-binaries.sh"))
if err != nil {
diff --git a/scripts/tests/test_workflow_trust.py b/scripts/tests/test_workflow_trust.py
index 17c1c846f0..dfeed669d2 100644
--- a/scripts/tests/test_workflow_trust.py
+++ b/scripts/tests/test_workflow_trust.py
@@ -21,6 +21,12 @@ SPEC.loader.exec_module(workflow_trust)
PIN = "a" * 40
DIGEST = "b" * 64
CHECKOUT_PIN = next(iter(workflow_trust.PROTECTED_CHECKOUT_PINS))
+GITHUB_SCRIPT_PIN = next(
+ iter(workflow_trust.REVIEWED_NODE24_ACTION_PINS["actions/github-script@"])
+)
+DOWNLOAD_ARTIFACT_PIN = next(
+ iter(workflow_trust.REVIEWED_NODE24_ACTION_PINS["actions/download-artifact@"])
+)
class WorkflowTrustTest(unittest.TestCase):
@@ -65,6 +71,40 @@ jobs:
self.assertTrue(any("full commit SHA" in finding for finding in findings))
self.assertTrue(any("sha256 digest" in finding for finding in findings))
+ def test_requires_reviewed_node24_action_pins(self) -> None:
+ accepted = self.audit(
+ f"""permissions: {{}}
+jobs:
+ test:
+ runs-on: ubuntu-24.04
+ timeout-minutes: 10
+ steps:
+ - uses: actions/download-artifact@{DOWNLOAD_ARTIFACT_PIN}
+ - uses: actions/github-script@{GITHUB_SCRIPT_PIN}
+ with:
+ script: return true
+"""
+ )
+ self.assertEqual(accepted, [])
+
+ findings = self.audit(
+ """permissions: {}
+jobs:
+ test:
+ runs-on: ubuntu-24.04
+ timeout-minutes: 10
+ steps:
+ - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
+ - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b
+ with:
+ script: return true
+"""
+ )
+ self.assertEqual(
+ 2,
+ sum("Node 24 runtime baseline" in finding for finding in findings),
+ )
+
def test_requires_bounded_literal_runner_job_timeout(self) -> None:
missing = self.audit(
"""permissions: {}
@@ -550,7 +590,7 @@ steps:
branches: [main]
permissions: {{}}
steps:
- - uses: actions/download-artifact@{PIN}
+ - uses: actions/download-artifact@{DOWNLOAD_ARTIFACT_PIN}
- run: gh run download "$RUN_ID"
- run: gh pr checkout 17
- run: git fetch origin refs/pull/17/head
@@ -894,7 +934,7 @@ jobs:
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- - uses: actions/github-script@{PIN}
+ - uses: actions/github-script@{GITHUB_SCRIPT_PIN}
with:
script: |
const title = '${{{{ github.event.issue.title }}}}';
@@ -910,7 +950,7 @@ jobs:
with:
script: |2- # explicit indentation remains generated source
const body = '${{{{ github.event.comment.body }}}}';
- uses: actions/github-script@{PIN}
+ uses: actions/github-script@{GITHUB_SCRIPT_PIN}
"""
)
self.assertEqual(
@@ -925,7 +965,7 @@ jobs:
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- - uses: actions/github-script@{PIN}
+ - uses: actions/github-script@{GITHUB_SCRIPT_PIN}
env:
TITLE: ${{{{ github.event.issue.title }}}}
with: