D2: Secret Protection Access, Bypass Policies & Custom Patterns
GH-500 GitHub Advanced Security exam practice questions · 10 flashcards
Question
Role-based bypass policy?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Secret Protection Access, Bypass Policies & Custom Patterns practice questions and answers
- Role-based bypass policy?Only certain roles/teams can bypass push protection.
- How does delegated bypass work for push protection?Contributors request bypass; designated reviewers approve/deny.
- Configuring alert recipients?Repo admins, org owners, security managers, commit authors; custom notifications.
- Exclusions?secret_scanning.yml with paths-ignore to exclude directories (e.g. test fixtures).
- Custom patterns?Regex-based patterns at repo, org or enterprise level.
- Custom pattern components?Secret format regex, optional before/after secret, additional match requirements; test with sample.
- Dry run for custom patterns?Test against repos to evaluate false positives before publishing.
- Copilot-generated patterns?Copilot can generate regex for custom patterns from description.
- Enterprise custom patterns?Apply across all orgs.
- Scenario: detect internal tokens like ACME_[A-Z0-9]{32}. Feature?Custom secret scanning pattern (with push protection).