-
Notifications
You must be signed in to change notification settings - Fork 10
Add supply chain security checks to review protocol #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ItzikEzra-rh
wants to merge
2
commits into
flightctl:main
Choose a base branch
from
ItzikEzra-rh:security/supply-chain-review-checks
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.vscode/rejection is overly broad and doesn't distinguish legitimate use from attack vectors.Many projects legitimately use
.vscode/for:settings.json)extensions.json)launch.json,tasks.json)A blanket rejection doesn't help reviewers distinguish between these legitimate uses and actual supply chain injection attempts (e.g.,
.vscode/tasks.jsonwith maliciouspreLaunchTaskscripts).Suggestion: Replace the blanket rejection with: "Flag introduction of IDE-specific directories (
.vscode/,.idea/, etc.) for extra scrutiny. Verify that any executable configuration (tasks, launch scripts) is reviewed for malicious behavior. Legitimate workspace settings are acceptable if they don't execute code."🤖 Prompt for AI Agents
Source: Coding guidelines
Rejecting
.claude/conflicts with this repository's documented installation practices.The instruction to "Reject any PR introducing
.claude/or.vscode/directories" creates a direct conflict: this repository's ownCONTRIBUTING.mdandAGENTS.mddocument.claude/as the legitimate project-level installation location for Claude Code workflows. The installer creates.claude/skills/,.claude/commands/, and.claude/CLAUDE.mdas part of normal operation.When consuming workflows (code-review, self-review gates) read this protocol, they would flag the repository's own installation method as a supply chain attack. This violates the coding guidelines requirement that shared resources must be "generic enough for all consumers."
Suggestion: Clarify the threat model. If the concern is unexpected
.claude/directories in repositories that don't use this workflow system, narrow the guidance to: "Flag introduction of IDE-specific directories (.claude/,.vscode/) in repositories that don't already use them. Verify legitimate use versus potential supply chain injection." This allows reviewers to distinguish between documented tooling and unexpected directory injection.🤖 Prompt for AI Agents
Source: Coding guidelines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On .vscode/ — this is an intentionally strict posture. .vscode/ can carry executable configs that are actively exploited as attack vectors. Keeping the blanket rejection.
On .claude/ — the protocol evaluates diffs, not existing repo structure. A PR introducing a new .claude/ directory where one doesn't exist is the suspicious case. For projects that already have one, changes to .claude/ should require human review — not LLM-only — given the current risk landscape.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ItzikEzra-rh— understood on both points..vscode/: Noted — intentionally strict, keeping the blanket rejection. Acknowledged..claude/: The "introducing" wording does carry the intent for the new-directory case. One gap worth noting: your second point — "For projects that already have one, changes to.claude/should require human review" — isn't reflected in the current protocol text. The current sentence only rejects introductions of.claude/; it's silent on subsequent changes. If you want that human-escalation policy enforced, it would need an additional sentence, e.g.:Happy to leave it as-is if that's intentional scope for this PR.
✏️ Learnings added