Skip to content

Commit 80206e1

Browse files
committed
chore(ci): bump setup-node to v6.4.0, deploy-pages to v5.0.0, withastro/action to v6.1.2
1 parent de4813d commit 80206e1

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
# Deliberately NO setup-bun: prove `npm install -g` works without a
103103
# separately-installed Bun. The launcher uses the bundled `bun` dependency.
104104
- name: Setup Node
105-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
105+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
106106
with:
107107
node-version: 20
108108

.github/workflows/deploy-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Checkout
2626
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
2727
- name: Build with Astro
28-
uses: withastro/action@56781b97402ce0487b7e61ce2cb960c0e2cc5289 # v3
28+
uses: withastro/action@e84f40bd8d2caa9e768ec82ad30dd81f0b280853 # v6.1.2
2929
with:
3030
path: ./docs-site
3131
node-version: 22
@@ -41,4 +41,4 @@ jobs:
4141
steps:
4242
- name: Deploy to GitHub Pages
4343
id: deployment
44-
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
44+
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252

5353
# node + npm perform the actual publish. registry-url points npm at the public registry.
5454
- name: Setup Node
55-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
55+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
5656
with:
5757
node-version: 24
5858
registry-url: "https://registry.npmjs.org"

tests/ci-workflows.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe("GitHub Actions hardening", () => {
1717
expect(count(workflow, "timeout-minutes: 8")).toBe(2);
1818
expect(workflow).toContain("actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0");
1919
expect(workflow).toContain("oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6");
20-
expect(workflow).toContain("actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020");
20+
expect(workflow).toContain("actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e");
2121
expect(workflow).toContain("bun test --isolate tests");
2222
expect(workflow).not.toMatch(/uses:\s+\S+@(?:v\d+|main|master)\b/);
2323
});
@@ -68,7 +68,7 @@ describe("GitHub Actions hardening", () => {
6868
// Immutable action references.
6969
expect(workflow).toContain("actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0");
7070
expect(workflow).toContain("oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6");
71-
expect(workflow).toContain("actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020");
71+
expect(workflow).toContain("actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e");
7272
expect(workflow).not.toMatch(/uses:\s+\S+@(?:v\d+|main|master)\b/);
7373

7474
// Workflow-dispatch inputs must reach shell code via env, never by direct
@@ -116,8 +116,8 @@ describe("GitHub Actions hardening", () => {
116116
expect(workflow).toContain("timeout-minutes: 15");
117117
expect(workflow).toContain("timeout-minutes: 10");
118118
expect(workflow).toContain("actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0");
119-
expect(workflow).toContain("withastro/action@56781b97402ce0487b7e61ce2cb960c0e2cc5289");
120-
expect(workflow).toContain("actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e");
119+
expect(workflow).toContain("withastro/action@e84f40bd8d2caa9e768ec82ad30dd81f0b280853");
120+
expect(workflow).toContain("actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128");
121121
expect(workflow).not.toMatch(/uses:\s+\S+@(?:v\d+|main|master)\b/);
122122
});
123123
});

0 commit comments

Comments
 (0)