D2: Secret Protection Scenarios
GH-500 GitHub Advanced Security exam practice questions · 10 flashcards
Question
Secret committed to a public repo by mistake?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Secret Protection Scenarios practice questions and answers
- Secret committed to a public repo by mistake?Rotate immediately — assume compromise; partners may auto-revoke.
- Secret found in old commit history?Rotate; optionally rewrite history; close alert as revoked.
- Test fixture keys causing alerts?Exclude paths via secret_scanning.yml or close as used in tests.
- Contractor bypassed push protection with 'fix later'?Alert created; follow up to remove and rotate.
- Need approval before bypass?Enable delegated bypass.
- Detect database connection strings?Enable non-provider patterns.
- Detect passwords in config?Enable generic secret detection (AI).
- Org-specific token format?Custom pattern with push protection.
- Validate if leaked token still works?Enable validity checks.
- Notify security team of every new secret alert?Webhook/notifications to security managers.