Interview Prep/DevSecOps/SAST, SCA and secrets scanning in CI

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.

All DevSecOps questions Roadmap: Security in the pipeline

More on SAST, SCA and secrets scanning in CI