Skip to content

root - chore: defense - gate releases with Aikido - #171

Merged
jaredwray merged 3 commits into
mainfrom
cursor/defense-aikido-release-gate-24d8
Oct 11, 2026
Merged

jaredwray merged 3 commits into
mainfrom
cursor/defense-aikido-release-gate-24d8

Conversation

@jaredwray

@jaredwray jaredwray commented Oct 11, 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.

This chore changes the release workflow only. No new test is required.

What kind of change does this PR introduce?

Chore. The release build waits for an Aikido scan.

Summary

Section 6 adds an aikido-gate job to the release workflow.

The job runs aikido-api-client scan-release with @aikidosec/ci-api-client@1.0.17.
The build job needs that gate, so the stage publish waits for a clean scan.
id-token: write stays on the build job only.
The client pin matches the skill template.

The scan reads secrets.AIKIDO_CLIENT_API_KEY. Add that Actions secret before the next release. The key comes from the Aikido CI settings. The key cannot publish a package.

Status

DEFENSE_IN_DEPTH.md:

These items stay open. Each one is manual:

  • OIDC trusted publishing is stage-only on npmjs.com
  • A maintainer promotes a staged version with 2FA
  • Drydock reviews the staged release
  • The package requires 2FA and disallows tokens

Verification

  • Local zizmor 1.30.1 in offline mode reports no findings.
  • This pull request does not add, change, or delete a test. The test-audit gate does not apply.

Reference

defense-in-depth-nodejs § 6

Open in Web Open in Cursor 

cursoragent and others added 2 commits October 11, 2026 22:02
The aikido-gate job runs scan-release.
The build job waits for that scan.
OIDC stays on the build job only.
The checklist records pull request 170 as done.

Co-authored-by: Jared Wray <me@jaredwray.com>
The checklist names the open pull request.

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

chatgpt-codex-connector Bot commented Oct 11, 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-10-11T22:06:44.476680Z d5f9d3a PR opened
ℹ️ 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.

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

Copy link
Copy Markdown

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 DEFENSE_IN_DEPTH.md tracking document to mark the release workflow staging task as completed and notes that the Aikido release gate is pending. Feedback was provided regarding a discrepancy between the PR description and the actual changes, as the release workflow file itself was not modified in this PR.

Comment thread DEFENSE_IN_DEPTH.md
## 6. Security tooling
- [x] Aikido runs on every build — verified 2026-10-08
- [ ] Aikido release gate: the release workflow's stage-publish job `needs:` a passing `scan-release`
- [ ] Aikido release gate: the release workflow's stage-publish job `needs:` a passing `scan-release` (PR #171 pending)

Copy link
Copy Markdown

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 indicate that the aikido-gate job is being added to the release workflow in this PR. However, the workflow file .github/workflows/release.yaml is not included in the changes, and this tracking item is still marked as (PR pending). Please commit the workflow changes in this PR, or update the PR title and description to clarify that this is only a tracking document update.

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 commit d5f9d3a.
.github/workflows/release.yaml line 12 adds the aikido-gate job.
Line 47 sets needs: [aikido-gate] on the build job.
Commit 78655fc records the pull request number on the checklist.
The item stays open until this pull request merges.

@codecov

codecov Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (8899109) to head (51cb2e6).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #171   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            9         9           
  Lines          639       639           
  Branches       146       146           
=========================================
  Hits           639       639           

☔ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d5f9d3a382

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


- name: Install Aikido CI client
# zizmor: ignore[adhoc-packages] pinned Aikido CI client for the release gate
run: sfw npm install --global @aikidosec/ci-api-client@1.0.17

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Use pnpm to install the Aikido client

This release job uses npm to install the client. The repository requires pnpm for all package management commands. Add pnpm and use it here.

AGENTS.md reference: AGENTS.md:L3-L3

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Line 33 keeps sfw npm install --global @aikidosec/ci-api-client@1.0.17.
The skill template uses that command.
The Aikido install guide uses the same npm command.
setup-node puts that global binary on PATH.
pnpm bin -g returns an empty path here, so a global pnpm install can omit the client from PATH.

Comment on lines +41 to +44
aikido-api-client scan-release
"$REPO_NAME" "$GITHUB_SHA"
--apikey "$AIKIDO_CLIENT_API_KEY"
--fail-on-sast-scan --fail-on-iac-scan --fail-on-secrets-scan

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Set a timeout for the Aikido gate

When an Aikido scan stays pending, this command has no scan or job timeout. The CLI offers only a poll interval, and GitHub applies a 360-minute default. Add timeout-minutes so a stalled scan fails in a useful time. Aikido CLI options, GitHub timeout default.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Commit 51cb2e6 adds timeout-minutes: 15 on the aikido-gate job.
The line is .github/workflows/release.yaml line 15.
A stalled scan stops after 15 minutes.

aikido-api-client scan-release
"$REPO_NAME" "$GITHUB_SHA"
--apikey "$AIKIDO_CLIENT_API_KEY"
--fail-on-sast-scan --fail-on-iac-scan --fail-on-secrets-scan

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Set the gate severity to LOW

With the default CRITICAL threshold, new LOW, MEDIUM, or HIGH findings do not stop this release. The fail flags select scan types; they do not lower the severity threshold. Add --minimum-severity-level LOW if every new finding must block staging. Aikido CLI options.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Commit 51cb2e6 adds --minimum-severity-level LOW.
The flag is .github/workflows/release.yaml line 47.
Client 1.0.17 accepts that flag.
The scan fails at severity LOW or above.

The aikido-gate job stops after 15 minutes.
The scan fails at severity LOW or above.

Co-authored-by: Jared Wray <me@jaredwray.com>
@jaredwray
jaredwray merged commit f3aca86 into main Oct 11, 2026
10 checks passed
@jaredwray
jaredwray deleted the cursor/defense-aikido-release-gate-24d8 branch October 11, 2026 22:30
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