Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
id-token: write

steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8
with:
name: verified-npm-package
path: ${{ runner.temp }}/release-artifact
Expand Down Expand Up @@ -202,7 +202,7 @@ jobs:
contents: write

steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8
with:
name: verified-npm-package
path: ${{ runner.temp }}/release-artifact
Expand Down
7 changes: 5 additions & 2 deletions tests/release-readiness.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ describe("release readiness", () => {
const actions = workflow.match(/uses:\s+actions\/[^@\s]+@([^\s#]+)/g) ?? [];

expect(workflow).toContain("Verify release tag matches package version and protected main");
expect(workflow).toContain("actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a");
expect(workflow).toContain("actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c");
// Pin by full commit SHA, but do not hard-code which SHA: Dependabot
// bumps the pin and a literal here turned every such PR red.
expect(workflow).toMatch(/actions\/upload-artifact@[0-9a-f]{40}\s/);
expect(workflow).toMatch(/actions\/download-artifact@[0-9a-f]{40}\s/);
expect(workflow).not.toMatch(/actions\/(?:upload|download)-artifact@v\d/);
expect(workflow).toContain('cp scripts/resolve-npm-publication.mjs "$ARTIFACT_DIR/"');
expect(publishJob).toContain("id-token: write");
expect(publishJob).toContain("sha256sum -c artifact.sha256");
Expand Down
Loading