Build cache poisoning concern: a PR build populated a cache later used on main.
AdvancedTroubleshootingSecrets, Security and Pipeline Performance
Answer
Likely causes → Caches shared across trust levels.
Diagnose → Review cache scope rules and keys.
Fix → Scope caches by branch/trust; in GitHub, caches from PR merge refs are only readable by that PR; use read-only restore on release jobs and prefer clean builds for releases.
Prevent → Release builds must not restore untrusted caches.
More on Secrets, Security and Pipeline Performance
A secret printed in logs appears as `***` in GitHub Actions but a base64 variant is visible.Advanced`gitleaks` finds a secret in an old commit, but the file is gone now.BeginnerTrivy scan fails the pipeline: `FATAL ... failed to download vulnerability DB ... TOOMANYREQUESTS`.Intermediate`cosign verify` fails: `no matching signatures: none of the expected identities matched`.AdvancedKyverno `verifyImages` blocks all deploys after rollout: `image verification failed`.AdvancedDependabot/Renovate PRs fail CI with unrelated errors.Beginner