Skip to content

root - chore: defense - disable setup-node cache on release - #73

Merged
jaredwray merged 2 commits into
mainfrom
cursor/defense-actions-setup-node-cache-64a2
Sep 9, 2026
Merged

jaredwray merged 2 commits into
mainfrom
cursor/defense-actions-setup-node-cache-64a2

Conversation

@jaredwray

@jaredwray jaredwray commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Please check if the PR fulfills these requirements

  • Followed the Contributing guidelines and Code of Conduct
  • Tests for the changes have been added (for bug fixes/features) with 100% code coverage.

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
CI / supply-chain hardening.

Summary

Disables actions/setup-node default package-manager caching on the artifact-publishing release workflow (defense-in-depth § 4).

Status update

DEFENSE_IN_DEPTH.md: setup-node package-manager-cache → (PR #73 pending); persist-credentials → PR #72

Changes

Verification

  • release.yaml is the only artifact-publishing / OIDC workflow
  • That setup-node step sets package-manager-cache: false and does not set cache:

Reference

defense-in-depth-nodejs § 4

Open in Web Open in Cursor 

cursoragent and others added 2 commits September 9, 2026 21:35
Set package-manager-cache: false on the artifact-publishing release
workflow so a poisoned Actions cache cannot run in a job that holds
publish credentials. Reconcile persist-credentials as merged in PR #72.

Co-authored-by: Jared Wray <me@jaredwray.com>
Co-authored-by: Jared Wray <me@jaredwray.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the documentation in DEFENSE_IN_DEPTH.md and SECURITY.md to reflect that checkouts that do not push now set persist-credentials to false. There are no review comments, so I have no feedback to provide.

@jaredwray
jaredwray marked this pull request as ready for review September 9, 2026 21:35
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-09T21:38:17.758171Z c921abb Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codecov

codecov Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (41b95f5) to head (c921abb).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #73   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines           19        19           
  Branches         1         1           
=========================================
  Hits            19        19           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jaredwray
jaredwray merged commit 1e22847 into main Sep 9, 2026
12 checks passed
@jaredwray
jaredwray deleted the cursor/defense-actions-setup-node-cache-64a2 branch September 9, 2026 21:41
jaredwray added a commit that referenced this pull request Sep 9, 2026
* root - chore: defense - stage npm publishes from packed tarballs

Switch release.yaml from live pnpm publish to pack + pnpm stage publish
so a CI run can only stage. Reconcile setup-node cache as PR #73 and
record that workflows do not use npm registry tokens (OIDC id-token).

Co-authored-by: Jared Wray <me@jaredwray.com>

* docs: mark stage publish as PR #74 pending

Co-authored-by: Jared Wray <me@jaredwray.com>

* docs: leave npm-token secrets item unchecked

Codex is right that workflow YAML cannot prove Actions secrets are empty.
Keep the catalog item pending until secrets:read can inspect them.

Co-authored-by: Jared Wray <me@jaredwray.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
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.

2 participants