The secret scanner flags high-entropy strings in `package-lock.json` integrity hashes
BeginnerTroubleshootingSAST, SCA and secrets scanning in CI
Answer
Likely causes → Generic entropy rules match sha512-... integrity values and base64 blobs.
Diagnose → Check the RuleID (e.g. generic-api-key) and the file path in the report.
Fix → Allowlist lockfiles by path or a regex for integrity values in .gitleaks.toml:
[allowlist]
paths = ['''(^|/)package-lock\.json$''', '''(^|/)yarn\.lock$''']
Prevent → Tune generic rules once in a shared config and extend it per repo instead of each team inventing their own.
More on SAST, SCA and secrets scanning in CI
gitleaks fails the PR on `tests/fixtures/fake_rsa.pem` and `testdata/aws_creds.json`, which only contain dummy valuesBeginnergitleaks passes locally but the CI job reports 40 old leaks nobody touched in this PRIntermediate`fatal: ambiguous argument 'origin/main..HEAD': unknown revision` in the secrets-scan stepBeginnerSemgrep flags `subprocess.run(cmd, shell=True)` in a script where `cmd` is a hard-coded constantBeginnerSemgrep in CI reports findings in `node_modules/`, `vendor/` and minified `dist/*.js`BeginnerSemgrep job takes 35 minutes and gets killed with `exit code 137`Intermediate