Repository navigation
fix(security): plain gh keyword searches, and two stale or contradictory references - #1465
Merged
Merged
Conversation
…ory references - security-issue-import Steps 2a, 2b and 2c and import-from-md Step 2 ran `KW=$(tr -cd … < file)` and `gh search … "$KW"` as one command. Under the secure setup a `gh` in a command that also sets a variable stays sandboxed and fails. The keywords are now cleaned into a file by `tr -cd` on its own, and the search is a plain `gh` call with the cleaned keywords single-quoted, which is safe because the allowlist admits no quote, `$` or backtick. The from-md step-2 eval asserts the new shape: single-quoted cleaned keyword, no `$(`, and no `$(gh gist create` substitution. - security-issue-invalidate's clickable-reference rule listed the reporter draft as a surface for tracker references, while Step 5d says the draft never mentions `<tracker>`. The rule now covers only `<upstream>` references in the draft. - security-issue-sync pointed at a "Known release managers" subsection of AGENTS.md that no longer exists. It now points at `<project-config>/release-trains.md` § Release managers for releases currently relevant to the security tracker. Generated-by: Claude Code (Opus 5.5)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-ups from the security-family optimization (#1344).
Summary
ghkeyword searches. security-issue-import Steps 2a, 2b and 2c, and import-from-md Step 2, ranKW=$(tr -cd … < file)andgh search … "$KW"as one command. Under the secure setup aghin a command that also sets a variable stays sandboxed and fails.tr -cd 'A-Za-z0-9._ -'cleans the keywords into a file as its own command, and the search is a plainghcall with the cleaned keywords single-quoted. That is safe because the allowlist admits no quote,$or backtick.$(, and no$(gh gist createsubstitution. The old "no literalgh gist createanywhere" check was a false positive once the harmless cleaned text is inlined.<tracker>. The rule now covers only<upstream>references in the draft.<project-config>/release-trains.md§ Release managers for releases currently relevant to the security tracker.Test plan
skill-and-tool-validatemain) and after, outside the sandbox:main.Part of #1344.
Generated-by: Claude Code (Opus 5.5)
🤖 Generated with Claude Code