`npm audit fix --force` "fixed" the CVE and broke the app at runtime
IntermediateTroubleshootingSAST, SCA and secrets scanning in CI
Answer
Likely causes → --force installs semver-major upgrades of direct dependencies to reach a patched transitive version, bringing breaking API changes.
Diagnose →
git diff package.json package-lock.json
npm ls vulnerable-pkg
Fix → Revert, then target only the vulnerable transitive package with overrides:
"overrides": { "semver": "^7.5.4" }
Run the test suite and npm audit again.
Prevent → Never run audit fix --force in CI. Use Renovate/Dependabot PRs that go through tests.
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