adityamparikh opened a new pull request, #319:
URL: https://github.com/apache/solr-mcp/pull/319

   ## Summary
   
   Nothing in CI scans for committed credentials. This adds 
`.github/workflows/secret-scan.yml`, which runs gitleaks on the commits each 
pull request adds.
   
   ```text
   on pull_request → main
     checkout (full history, no persisted token)
     download gitleaks 8.30.1 linux_x64
     sha256sum -c against the release's published checksum
     gitleaks git . --redact --verbose --log-opts="--no-merges BASE..HEAD"
       finding → exit 1 → check fails
   ```
   
   `gitleaks/gitleaks-action` is not on the ASF Actions allow-list 
(`apache/infrastructure-actions` `approved_patterns.yml` has no gitleaks or 
trufflehog entry), so a `uses:` step would hit `startup_failure`. Downloading 
the binary and checking its checksum is the approach `apache/doris` uses in 
`gitleaks-pr-check.yml`. Only new commits are scanned; existing history is not.
   
   ## Evidence
   
   - **Checksum:** `551f6fc8…f2470eb` matches both the `digest` GitHub reports 
for `gitleaks_8.30.1_linux_x64.tar.gz` and the line in 
`gitleaks_8.30.1_checksums.txt`.
   - **Flags:** `git`, `--log-opts`, `--redact`, `-v/--verbose`, and the 
default exit code 1 on findings were checked against the v8.30.1 README.
   - **Not run locally:** gitleaks itself has not been run on this repo. The 
first run is this PR's own `Secret Scan` check, since `pull_request` runs 
workflows from the PR's merge commit. If it flags the labelled dev-only values 
(`dev-only-not-a-secret` in `keycloak/solr-mcp-realm.json`, `testpassword` in 
`docs/security/keycloak.md`) when a later PR touches them, add a 
`.gitleaks.toml` allowlist for those strings.
   - `./gradlew build` (RAT checks the new file's license header): BUILD 
SUCCESSFUL, 518 tests, 0 failures, 0 skipped.
   
   ## Merge Danger
   
   **Door:** two-way
   
   Deleting the workflow file reverts it.
   
   **Blast Radius:** PR-checks
   
   A false positive fails one check on a PR. It does not block merging unless 
the check is made required.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

  • [PR] ci: scan pull request com... adityamparikh (via GitHub) via issues

Reply via email to