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.

ci: qualify setup-node v7 consumer contracts

pulse-triage[bot]9a6a5811a701
diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml
index 01af795515..09ddb4e8fb 100644
--- a/.github/workflows/build-and-test.yml
+++ b/.github/workflows/build-and-test.yml
@@ -138,7 +138,7 @@ jobs:
persist-credentials: false
- name: Set up Node.js
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
cache: npm
diff --git a/.github/workflows/build-release-candidate.yml b/.github/workflows/build-release-candidate.yml
index d363639c35..bebaa12c15 100644
--- a/.github/workflows/build-release-candidate.yml
+++ b/.github/workflows/build-release-candidate.yml
@@ -708,7 +708,7 @@ jobs:
cache: false
- name: Set up Node.js
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
package-manager-cache: false
diff --git a/.github/workflows/canonical-governance.yml b/.github/workflows/canonical-governance.yml
index 6a7614541d..c606ebaaa8 100644
--- a/.github/workflows/canonical-governance.yml
+++ b/.github/workflows/canonical-governance.yml
@@ -38,7 +38,7 @@ jobs:
cache-dependency-path: repos/pulse/go.sum
- name: Set up Node.js for frontend governance
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
cache: npm
diff --git a/.github/workflows/compile-release-payload.yml b/.github/workflows/compile-release-payload.yml
index 9ba5deeed8..7c1b219bf0 100644
--- a/.github/workflows/compile-release-payload.yml
+++ b/.github/workflows/compile-release-payload.yml
@@ -65,7 +65,7 @@ jobs:
cache: false
- name: Set up Node.js
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
package-manager-cache: false
diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml
index c625baf3c0..3be410c4de 100644
--- a/.github/workflows/create-release.yml
+++ b/.github/workflows/create-release.yml
@@ -409,7 +409,7 @@ jobs:
persist-credentials: false
- name: Set up Node.js
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
@@ -444,7 +444,7 @@ jobs:
persist-credentials: false
- name: Set up Node.js
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
cache: 'npm'
@@ -483,7 +483,7 @@ jobs:
persist-credentials: false
- name: Set up Node.js
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
cache: 'npm'
@@ -564,7 +564,7 @@ jobs:
persist-credentials: false
- name: Set up Node.js
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
cache: 'npm'
@@ -729,7 +729,7 @@ jobs:
persist-credentials: false
- name: Set up Node.js
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
package-manager-cache: false
diff --git a/.github/workflows/release-dry-run.yml b/.github/workflows/release-dry-run.yml
index 1fa476e1a7..9faa6263f2 100644
--- a/.github/workflows/release-dry-run.yml
+++ b/.github/workflows/release-dry-run.yml
@@ -284,7 +284,7 @@ jobs:
--github-annotations
- name: Set up Node.js
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
package-manager-cache: false
diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml
index 0322900b11..b403775030 100644
--- a/.github/workflows/security-scan.yml
+++ b/.github/workflows/security-scan.yml
@@ -439,7 +439,7 @@ jobs:
persist-credentials: false
- name: Set up Node.js
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml
index aa11ab784e..0ea3c97fff 100644
--- a/.github/workflows/test-e2e.yml
+++ b/.github/workflows/test-e2e.yml
@@ -48,7 +48,7 @@ jobs:
persist-credentials: false
- name: Set up Node.js
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
cache: 'npm'
@@ -83,7 +83,7 @@ jobs:
with:
persist-credentials: false
- name: Set up Node.js
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
cache: 'npm'
@@ -142,7 +142,7 @@ jobs:
persist-credentials: false
- name: Set up Node.js
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
cache: 'npm'
@@ -295,7 +295,7 @@ jobs:
persist-credentials: false
- name: Set up Node.js
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
package-manager-cache: false
diff --git a/.github/workflows/unified-agent-native.yml b/.github/workflows/unified-agent-native.yml
index 79e72d1c24..b4979d4c5c 100644
--- a/.github/workflows/unified-agent-native.yml
+++ b/.github/workflows/unified-agent-native.yml
@@ -105,7 +105,7 @@ jobs:
- name: Set up Node.js for Windows command proof
if: ${{ !matrix.unix }}
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
cache: 'npm'
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
index 95516b861b..ce06890833 100644
--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
@@ -7971,3 +7971,20 @@ Historical incident archives are explicit reads, not a collector lifecycle.
metrics sampling loop. Organization teardown drops the archive reference without
saving or deleting recordings. Alert observation and recovery continue through
the alert manager and canonical resource timeline.
+
+### Node setup action v7 compatibility
+
+Workflow consumers pin `actions/setup-node` to
+`820762786026740c76f36085b0efc47a31fe5020` (v7.0.0). The action manifest
+retains the Node 24 execution runtime, setup/cache-save entry points and existing
+inputs. Its internal ESM/toolkit upgrade does not change the requested Node 24
+application toolchain. Consumers do not supply `registry-url` or depend on the
+removed dummy `NODE_AUTH_TOKEN` export. Explicit npm lockfile caching for test
+jobs and disabled automatic package-manager caching for privileged release jobs
+remain unchanged; no permission, dispatch input or signing backend changes.
+
+`test_setup_node_upgrade_preserves_consumer_contract` in the existing workflow
+trust suite verifies every consumer pin, absence of the affected auth assumptions,
+workflow trust controls and the retained native Windows command/lifecycle proof
+steps. Native Windows execution remains a hosted check, not a local Linux claim.
+This upgrade is independent of the grouped signing/Docker/Tailscale updates.
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index 00e9e4bd43..41178100dd 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -5344,3 +5344,20 @@ binding and lifecycle regressions are in `offline-license-issuer.test.mjs` and
`with-offline-entitlements.test.mjs`; the two scoped Chromium provisioning
scenarios verify the authenticated API/browser path. These are fixture proofs,
not release qualification or evidence that other Organization failures cleared.
+
+### Node setup action v7 compatibility
+
+Workflow consumers pin `actions/setup-node` to
+`820762786026740c76f36085b0efc47a31fe5020` (v7.0.0). The action manifest
+retains the Node 24 execution runtime, setup/cache-save entry points and existing
+inputs. Its internal ESM/toolkit upgrade does not change the requested Node 24
+application toolchain. Consumers do not supply `registry-url` or depend on the
+removed dummy `NODE_AUTH_TOKEN` export. Explicit npm lockfile caching for test
+jobs and disabled automatic package-manager caching for privileged release jobs
+remain unchanged; no permission, dispatch input or signing backend changes.
+
+`test_setup_node_upgrade_preserves_consumer_contract` in the existing workflow
+trust suite verifies every consumer pin, absence of the affected auth assumptions,
+workflow trust controls and the retained native Windows command/lifecycle proof
+steps. Native Windows execution remains a hosted check, not a local Linux claim.
+This upgrade is independent of the grouped signing/Docker/Tailscale updates.
diff --git a/docs/release-control/v6/internal/subsystems/security-privacy.md b/docs/release-control/v6/internal/subsystems/security-privacy.md
index 098764cc89..dc5ce3dd8d 100644
--- a/docs/release-control/v6/internal/subsystems/security-privacy.md
+++ b/docs/release-control/v6/internal/subsystems/security-privacy.md
@@ -2830,3 +2830,20 @@ symlink checks and expose no enumeration, sampling or writing capability.
Removing the disconnected recorder does not alter alert, action approval or
operator authority. An unrelated organization receives no default archive
fallback.
+
+### Node setup action v7 compatibility
+
+Workflow consumers pin `actions/setup-node` to
+`820762786026740c76f36085b0efc47a31fe5020` (v7.0.0). The action manifest
+retains the Node 24 execution runtime, setup/cache-save entry points and existing
+inputs. Its internal ESM/toolkit upgrade does not change the requested Node 24
+application toolchain. Consumers do not supply `registry-url` or depend on the
+removed dummy `NODE_AUTH_TOKEN` export. Explicit npm lockfile caching for test
+jobs and disabled automatic package-manager caching for privileged release jobs
+remain unchanged; no permission, dispatch input or signing backend changes.
+
+`test_setup_node_upgrade_preserves_consumer_contract` in the existing workflow
+trust suite verifies every consumer pin, absence of the affected auth assumptions,
+workflow trust controls and the retained native Windows command/lifecycle proof
+steps. Native Windows execution remains a hosted check, not a local Linux claim.
+This upgrade is independent of the grouped signing/Docker/Tailscale updates.
diff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.go
index 01f36cb521..8ca59fcef7 100644
--- a/scripts/installtests/build_release_assets_test.go
+++ b/scripts/installtests/build_release_assets_test.go
@@ -4375,3 +4375,43 @@ func workflowStepBlock(t *testing.T, jobBlock, step string) string {
}
return jobBlock[start : start+len(" - name: "+step+"\n")+end]
}
+
+// The action's ESM migration must not turn privileged release jobs into cache
+// writers or change the application toolchain requested by release consumers.
+func TestReleaseNodeSetupKeepsExplicitCacheIsolation(t *testing.T) {
+ for _, name := range []string{"build-release-candidate.yml", "compile-release-payload.yml", "create-release.yml", "release-dry-run.yml"} {
+ t.Run(name, func(t *testing.T) {
+ content, err := os.ReadFile(repoFile(".github", "workflows", name))
+ if err != nil {
+ t.Fatal(err)
+ }
+ blocks := regexp.MustCompile(`(?m)^ uses: actions/setup-node@[^\n]+\n(?: [^\n]*\n| with:\n)*`).FindAllString(string(content), -1)
+ if len(blocks) == 0 {
+ t.Fatal("missing Node setup")
+ }
+ if name == "create-release.yml" {
+ // First four jobs build/test; only the fifth is the privileged
+ // release consumer. Preserve the three explicit test caches.
+ if len(blocks) != 5 {
+ t.Fatalf("review changed release job layout: %d", len(blocks))
+ }
+ for i, block := range blocks[:4] {
+ if i > 0 && (!strings.Contains(block, "cache: 'npm'") || !strings.Contains(block, "cache-dependency-path: 'frontend-modern/package-lock.json'")) {
+ t.Fatalf("test cache lost its lockfile: %s", block)
+ }
+ }
+ blocks = blocks[4:]
+ }
+ for _, block := range blocks {
+ for _, want := range []string{"actions/setup-node@820762786026740c76f36085b0efc47a31fe5020", "node-version: '24'", "package-manager-cache: false"} {
+ if !strings.Contains(block, want) {
+ t.Fatalf("Node setup lost %s: %s", want, block)
+ }
+ }
+ if strings.Contains(block, "registry-url:") || strings.Contains(block, " cache:") {
+ t.Fatalf("unexpected authentication or explicit cache: %s", block)
+ }
+ }
+ })
+ }
+}
diff --git a/scripts/installtests/install_ps1_test.go b/scripts/installtests/install_ps1_test.go
index cef10118b5..9931fab477 100644
--- a/scripts/installtests/install_ps1_test.go
+++ b/scripts/installtests/install_ps1_test.go
@@ -136,6 +136,9 @@ func TestNativeWindowsExecutesGeneratedInstallCommand(t *testing.T) {
for _, needle := range []string{
`frontend-modern/src/utils/agentInstallCommand.ts`,
`Execute generated command with Windows PowerShell 5.1`,
+ `uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0`,
+ `node-version: '24'`,
+ `cache-dependency-path: 'frontend-modern/package-lock.json'`,
`agentInstallCommand.windows.test.ts`,
} {
if !strings.Contains(workflow, needle) {
diff --git a/scripts/tests/test_workflow_trust.py b/scripts/tests/test_workflow_trust.py
index 3800198dcb..aeef6481a2 100644
--- a/scripts/tests/test_workflow_trust.py
+++ b/scripts/tests/test_workflow_trust.py
@@ -36,6 +36,31 @@ class WorkflowTrustTest(unittest.TestCase):
path.write_text(content, encoding="utf-8")
return [finding.message for finding in workflow_trust.audit_workflow(path)]
+ def test_setup_node_upgrade_preserves_consumer_contract(self) -> None:
+ # v7 changes its internal module format, not the Node 24 consumer ABI.
+ # No consumer may rely on the removed dummy NODE_AUTH_TOKEN export.
+ count = 0
+ for path in (REPO_ROOT / ".github/workflows").glob("*.yml"):
+ source = path.read_text()
+ if "actions/setup-node@" not in source:
+ continue
+ with self.subTest(workflow=path.name):
+ self.assertNotIn("registry-url:", source)
+ self.assertNotIn("NODE_AUTH_TOKEN", source)
+ for line in source.splitlines():
+ if "uses: actions/setup-node@" in line:
+ count += 1
+ self.assertEqual(
+ line.strip(),
+ "uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0",
+ )
+ self.assertEqual(workflow_trust.audit_workflow(path), [])
+ self.assertGreater(count, 0)
+ native = (REPO_ROOT / ".github/workflows/unified-agent-native.yml").read_text()
+ self.assertIn("agentInstallCommand.windows.test.ts", native)
+ self.assertIn("^Test(InstallPS1|WindowsAgentLifecycle)", native)
+ self.assertIn("node-version: '24'", native)
+
def test_accepts_immutable_dependencies_and_explicit_checkout_credentials(self) -> None:
findings = self.audit(
f"""permissions: