Repository navigation
[skip-cr] ci: scan changed commits for secrets - #188
Merged
Merged
Conversation
Add an independent secret scan for pull requests and pushes to main. Preserve the existing validation jobs and handle new branches and force-pushed history. Co-Authored-By: Codex <noreply@openai.com>
vtmocanu
force-pushed
the
ci/183-secret-scan
branch
from
November 15, 2026 17:53
9a582ae to
e157bf1
Compare
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.
Adds a separate secret-scan workflow running gitleaks 8.30.1, pinned and SHA256-verified. It scans pull-request commits from their merge base and every push to main, including zero-before pushes and force-pushed history. Push runs are never cancelled or replaced by a newer push, so no pushed range goes unscanned; this is why it is its own workflow rather than a job in test.yml, whose per-ref cancel-in-progress group would drop ranges. test.yml is unchanged.
Validation: workflow lint and local validation suites pass. A generated, unusable scanner fixture failed CI; after dropping that commit, the clean-head scan passed and existing jobs passed. The fixture is absent from final branch history. The new job took 6 seconds and runs alongside the existing tests.
Closes #183.