GH-500 · Question #21
Which of the following is the most proactive and practical way to prevent new secret scanning alerts?
The correct answer is D. Enable push protection. To prevent new secret scanning alerts, enable push protection to block secrets from being committed in the first place, and manage push protection patterns to disable blocking for specific, low-risk secret types or false positives. Enable Push Protection Prevent new commits…
Question
Which of the following is the most proactive and practical way to prevent new secret scanning alerts?
Options
- AScan for non-provider patterns
- BUse feature branches
- CConfigure a secret scanning Actions workflow.
- DEnable push protection.
How the community answered
(30 responses)- A13% (4)
- B3% (1)
- C10% (3)
- D73% (22)
Explanation
To prevent new secret scanning alerts, enable push protection to block secrets from being committed in the first place, and manage push protection patterns to disable blocking for specific, low-risk secret types or false positives. Enable Push Protection Prevent new commits: Push protection proactively scans code for secrets before they are pushed to a repository. If a secret is detected, the push is blocked, providing immediate feedback to developers and preventing secrets from entering the codebase. Configure patterns: You can configure which secret patterns are blocked at the organization or enterprise level. By disabling patterns that frequently generate false positives, you can reduce the number of new alerts.
Topics
Community Discussion
No community discussion yet for this question.