Skip to content

fix(githooks): narrow SAFE_LINE_PATTERN to YAML schema contexts#30549

Merged
siddseethepalli merged 1 commit into
mainfrom
swarm/6de7/task-32
May 13, 2026
Merged

fix(githooks): narrow SAFE_LINE_PATTERN to YAML schema contexts#30549
siddseethepalli merged 1 commit into
mainfrom
swarm/6de7/task-32

Conversation

@siddseethepalli
Copy link
Copy Markdown
Contributor

@siddseethepalli siddseethepalli commented May 13, 2026

Addresses Codex review feedback on #30126. SAFE_LINE_PATTERN was whitelisting every indented bare-key clientSecret declaration regardless of file type or surrounding structure, weakening secret scanning outside OpenAPI schema contexts. Now requires both a YAML-schema file path AND a schema-annotation line immediately below (type:/$ref:/description:/...).


Open in Devin Review

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

View 3 additional findings in Devin Review.

Open in Devin Review

Comment thread .githooks/pre-commit
@siddseethepalli
Copy link
Copy Markdown
Contributor Author

Addressed in #30587

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.

1 participant