Skip to content

chore(ci): remove stale release-napi.yml.yak workflow#209

Merged
stormslowly merged 1 commit into
mainfrom
chore/remove-stale-release-napi-yak
May 12, 2026
Merged

chore(ci): remove stale release-napi.yml.yak workflow#209
stormslowly merged 1 commit into
mainfrom
chore/remove-stale-release-napi-yak

Conversation

@stormslowly
Copy link
Copy Markdown
Collaborator

Summary

Delete .github/workflows/release-napi.yml.yak, a disabled-by-extension workflow that still carries a fully-formed npm publish pipeline.

Why this matters

While the .yak suffix prevents GitHub Actions from loading the file, the file body remains a latent supply-chain risk:

  • Long-lived credential: references secrets.NPM_TOKEN for npm publishing — exactly the credential model recent supply-chain attacks (e.g. TanStack npm compromise) extract via runner memory. The active release-npm.yml already uses OIDC + provenance instead.
  • Push-to-main trigger: configured as on: push: branches: main, paths: npm/package.json. A rename from .yak back to .yml would silently re-enable an auto-publish path bypassing the manual workflow_dispatch gate and the environment: npm reviewer in release-npm.yml.
  • Unpinned third-party actions: taiki-e/checkout-action@v1, actions/checkout@v4, actions/upload-artifact@v4, actions/download-artifact@v4, actions/setup-node@v4, goto-bus-stop/setup-zig@v2, cross-platform-actions/action@v0.25.0, addnab/docker-run-action@v3, docker/setup-qemu-action@v3, EndBug/version-check@v2 — all floating tags vulnerable to tag-rewrite supply-chain attacks.

release-npm.yml (workflow_dispatch + OIDC trusted publish + environment-gated) already supersedes every responsibility this file had.

Test plan

  • Confirm no other workflow or doc references release-napi.yml.yak
  • Confirm release-npm.yml remains the sole npm publish entry point
  • CI passes

The .yak suffix disables this workflow, but the file remains a latent
risk: it still contains a long-lived NPM_TOKEN credential reference,
unpinned third-party actions, and a push-to-main trigger. Renaming it
back to .yml (accidentally or maliciously) would immediately enable a
publish path that bypasses the OIDC-based release-npm.yml flow.

release-npm.yml already supersedes it for all npm publishing.
Copilot AI review requested due to automatic review settings May 12, 2026 03:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes a disabled-by-extension GitHub Actions workflow that still contains a complete N-API build + npm publish pipeline, reducing latent supply-chain risk and ensuring the repo’s release process remains centered on the active release-npm.yml workflow.

Changes:

  • Delete .github/workflows/release-napi.yml.yak (inactive file that still embeds a publish pipeline and token-based npm auth).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented May 12, 2026

Merging this PR will not alter performance

✅ 12 untouched benchmarks


Comparing chore/remove-stale-release-napi-yak (4417c2f) with main (eb5ac67)

Open in CodSpeed

@stormslowly stormslowly enabled auto-merge (squash) May 12, 2026 08:17
@stormslowly stormslowly merged commit aea5a5a into main May 12, 2026
25 checks passed
@stormslowly stormslowly deleted the chore/remove-stale-release-napi-yak branch May 12, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants