Skip to content

root - chore: defense - gate stage-publish on Aikido scan-release - #75

Merged
jaredwray merged 2 commits into
mainfrom
cursor/defense-aikido-release-gate-64a2
Sep 9, 2026
Merged

jaredwray merged 2 commits into
mainfrom
cursor/defense-aikido-release-gate-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

Adds an Aikido scan-release job that the stage-publish job needs: (defense-in-depth § 6).

Status update

DEFENSE_IN_DEPTH.md: Aikido scan-release gate → (PR #75 pending); stage publish → PR #74

Changes

  • Add scan-release running aikido-api-client scan-release (Socket Firewall, package-manager-cache: false, pinned @aikidosec/ci-api-client@1.0.17)
  • build (pack + pnpm stage publish) now needs: [scan-release]; id-token: write is scoped to that job
  • Reconcile staged publishing as merged in PR root - chore: defense - stage npm publishes from packed tarballs #74
  • Leave “no npm tokens in Actions secrets” unchecked — this token still cannot list secrets (403)

Maintainer

  • Set AIKIDO_CLIENT_API_KEY from Aikido → Continuous Integration settings (no publish authority). The GitHub app check on PRs is not this key.
  • Still inspect repo/org Actions secrets and delete any leftover NPM_TOKEN / NODE_AUTH_TOKEN.

Verification

  • Stage-publish job needs: [scan-release]
  • Job name: omitted (kebab-case job id scan-release)
  • CI on this PR (release itself is workflow_dispatch / release only)

Reference

defense-in-depth-nodejs § 6

Open in Web Open in Cursor 

cursoragent and others added 2 commits September 9, 2026 22:59
Add a scan-release job that runs aikido-api-client scan-release and make
the existing pack/stage job need it. Reconcile staged publishing as PR #74.

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 the release workflow now stages packed tarballs using pnpm stage publish. However, the actual workflow file changes (such as .github/workflows/release.yaml) are missing from the pull request and should be included.

Comment thread SECURITY.md
- The lockfile is committed and CI installs with `--frozen-lockfile`. There is no Dependabot config; dependency updates go through reviewed PRs.
- CI workflows default to read-only `contents: read` permissions; generated output is never committed back from CI; every action is pinned to a full commit SHA; Socket Firewall (`sfw`) wraps `pnpm install`; zizmor lints workflows on every PR; checkouts that do not push set `persist-credentials: false`.
- The release workflow disables `setup-node` package-manager caching.
- The release workflow disables `setup-node` package-manager caching and stages packed tarballs with `pnpm stage publish` instead of publishing live.

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.

medium

The pull request title and description state that this PR adds an Aikido scan-release job and gates the stage-publish job on it. However, the actual workflow file (e.g., .github/workflows/release.yaml) is missing from the changes in this PR. Only documentation files (DEFENSE_IN_DEPTH.md and SECURITY.md) are currently modified. Please include the workflow file changes in this PR.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The workflow change is in this PR. .github/workflows/release.yaml is modified on the first commit (e544607): it adds the scan-release job and build now needs: [scan-release]. The second commit only updates DEFENSE_IN_DEPTH.md with the pending PR number, which is likely what this review looked at in isolation.

Files in the PR: .github/workflows/release.yaml, DEFENSE_IN_DEPTH.md, SECURITY.md.

@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 (39f8498) to head (2e902e5).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #75   +/-   ##
=========================================
  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 marked this pull request as ready for review September 9, 2026 23:02
@jaredwray
jaredwray merged commit ae5304b into main Sep 9, 2026
12 checks passed
@jaredwray
jaredwray deleted the cursor/defense-aikido-release-gate-64a2 branch September 9, 2026 23:05
@chatgpt-codex-connector

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-09T23:05:22.695729Z 2e902e5 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.

jaredwray added a commit that referenced this pull request Sep 9, 2026
Socket PR reviews and Actions-secret inventory remain unchecked;
those need maintainer access this token does not have.

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