Skip to content

root - chore: defense - record repository lockdown as applied - #77

Merged
jaredwray merged 3 commits into
mainfrom
cursor/defense-lockdown-recorded-64a2
Sep 11, 2026
Merged

jaredwray merged 3 commits into
mainfrom
cursor/defense-lockdown-recorded-64a2

Conversation

@jaredwray

@jaredwray jaredwray commented Sep 10, 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, ...)
Docs / supply-chain hardening status.

Summary

Records that a repo admin applied lockdown-repo.sh on Hyphen/react-sdk (defense-in-depth § 7). The script is not in this repo.

Status update

DEFENSE_IN_DEPTH.md: lockdown-repo.sh → PR #77 (admin apply 2026-09-10, all 9 ✓; this token’s --check 403s Actions permission APIs; rulesets confirmed via API)

Verification

  • Admin apply output: all 9 settings set
  • Rulesets on the repo: Pull requests required (required checks zizmor, build; code-owner review) and Tags only by admins
  • --check from this token 403s Actions permission APIs (not admin) — documented on the catalog line, not claimed green
  • lockdown-repo.sh is not committed here

Still unchecked (not this PR)

  • Socket Security GitHub app on dependency PRs
  • npm/registry Actions secrets inventory
  • § 5 manuals: npmjs stage-only OIDC, Drydock, 2FA promote, disallow tokens
  • § 7 manuals: phishing-resistant 2FA; recovery codes

Reference

defense-in-depth-nodejs § 7

Open in Web Open in Cursor 

cursoragent and others added 2 commits September 10, 2026 00:40
Repo admin applied lockdown-repo.sh (PRs required on main, tag
ruleset, immutable releases, fork-PR approval, read-only tokens,
Actions allowlist, secret scanning, Dependabot off). Do not commit
the script. Leave Socket, npm secrets, and (manual) items unchecked.

Co-authored-by: Jared Wray <me@jaredwray.com>
Co-authored-by: Jared Wray <me@jaredwray.com>
@jaredwray
jaredwray marked this pull request as ready for review September 10, 2026 00:41

@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 repository's security documentation by marking the repository lockdown task as completed in DEFENSE_IN_DEPTH.md and adding detailed explanations of the active lockdown measures in SECURITY.md. The review feedback identifies a discrepancy between the allowed actions documented in SECURITY.md and the command-line parameters recorded in DEFENSE_IN_DEPTH.md, suggesting they be aligned for consistency.

Comment thread DEFENSE_IN_DEPTH.md Outdated
- [ ] Phishing-resistant 2FA (passkeys / hardware keys) on the GitHub and npm accounts (manual)
- [ ] Recovery codes stored offline in a password manager (manual)
- [ ] `lockdown-repo.sh` applied by a repo admin (never committed to this repo); `--check` with `--required-checks` and `--allowed-actions` passes (PRs required on the default branch, merges blocked unless required status checks pass, tag ruleset, immutable releases, fork-PR approval (public repos), read-only workflow tokens, Actions allowlist, secret scanning, Dependabot disabled, private vulnerability reporting (public repos))
- [x] `lockdown-repo.sh` applied by a repo admin (never committed to this repo); `--check` with `--required-checks` and `--allowed-actions` passes (PRs required on the default branch, merges blocked unless required status checks pass, tag ruleset, immutable releases, fork-PR approval (public repos), read-only workflow tokens, Actions allowlist, secret scanning, Dependabot disabled, private vulnerability reporting (public repos)) — PR #77 (admin apply 2026-09-10; `--required-checks "zizmor,build"` `--allowed-actions "pnpm/*,codecov/*"`)

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

There is a discrepancy between the allowed actions list documented in SECURITY.md (which includes zizmorcore/* and SocketDev/) and the recorded --allowed-actions parameter in this file (which only lists pnpm/,codecov/). Update the recorded command to include all allowed patterns: --allowed-actions "zizmorcore/,SocketDev/,pnpm/,codecov/*"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lockdown-repo.sh always allowlists GitHub-owned actions, verified creators, zizmorcore/*, and SocketDev/*. --allowed-actions is only the extra patterns passed on apply.

The recorded command is what the admin ran: --allowed-actions "pnpm/*,codecov/*". SECURITY.md describes the effective allowlist (defaults + those extras), which is why it also names zizmorcore/* and SocketDev/*. Combining everything into --allowed-actions would mis-document the apply flags.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 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-10T00:44:53.840019Z f1d8150 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 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (67ef293) to head (37f3380).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #77   +/-   ##
=========================================
  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.

@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: f1d8150907

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

Comment thread DEFENSE_IN_DEPTH.md Outdated
- [ ] Phishing-resistant 2FA (passkeys / hardware keys) on the GitHub and npm accounts (manual)
- [ ] Recovery codes stored offline in a password manager (manual)
- [ ] `lockdown-repo.sh` applied by a repo admin (never committed to this repo); `--check` with `--required-checks` and `--allowed-actions` passes (PRs required on the default branch, merges blocked unless required status checks pass, tag ruleset, immutable releases, fork-PR approval (public repos), read-only workflow tokens, Actions allowlist, secret scanning, Dependabot disabled, private vulnerability reporting (public repos))
- [x] `lockdown-repo.sh` applied by a repo admin (never committed to this repo); `--check` with `--required-checks` and `--allowed-actions` passes (PRs required on the default branch, merges blocked unless required status checks pass, tag ruleset, immutable releases, fork-PR approval (public repos), read-only workflow tokens, Actions allowlist, secret scanning, Dependabot disabled, private vulnerability reporting (public repos)) — PR #77 (admin apply 2026-09-10; `--required-checks "zizmor,build"` `--allowed-actions "pnpm/*,codecov/*"`)

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 Verify the lockdown check before marking it passed

The accompanying verification states that lockdown-repo.sh --check still returns 403 for the Actions-permission APIs, so there is no successful end-to-end check supporting this completed item. Marking it [x] and saying the check passes can cause future security reviews to treat settings that were never read back as verified; either run the complete check with an admin-capable token or document the unverified portions and leave the item incomplete.

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.

Agreed that this integration cannot treat --check as green: it 403s the Actions permission APIs (not an admin token).

What is verified:

  • Admin apply output (all 9 settings ✓) with --required-checks "zizmor,build" and --allowed-actions "pnpm/*,codecov/*"
  • Rulesets readable via API: Pull requests required (code-owner review, required checks zizmor and build) and Tags only by admins

I am not unchecking the apply. The catalog note now says --check was not re-run with an admin token from this agent. If you paste a successful admin --check with the same flags, I’ll add that to the line.

Co-authored-by: Jared Wray <me@jaredwray.com>
@jaredwray
jaredwray merged commit 5812f01 into main Sep 11, 2026
12 checks passed
@jaredwray
jaredwray deleted the cursor/defense-lockdown-recorded-64a2 branch September 11, 2026 23:41
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