What role is required to change a repository's code scanning severity threshold that fails a pull request status check?
Show answerHide answer
Correct answer: D Admin
Explanation
Explanation:Configuring a repository's code scanning analysis to fail a pull request status check is a security gate that affects the team's workflow. Changing this threshold requires permissions to modify high-level repository settings and security policies, as it directly impacts the repository's security posture and mandatory merge requirements.
Correct Option:
D. Admin:
The Admin role on a repository has the necessary permissions to change configuration settings for GitHub Advanced Security features, including the code scanning severity threshold that controls when a pull request check fails. This setting is part of the repository's security and analysis configuration.
Incorrect Options:
A. Maintain:
This role can write to the repository, manage issues and pull requests, and run workflows, but it does not have permission to change repository settings or GitHub Advanced Security configurations.
B. Write:
This role can push code, merge pull requests, and manage issues, but it cannot modify repository-level settings related to security analysis or change the code scanning configuration.
C. Triage:
This role is a more limited, read-focused role with permissions to manage issues and pull requests but cannot write code or change any repository settings.
Reference:
GitHub documentation, "Repository roles for an organization," specifies that the Admin role has permissions to "Manage security and analysis settings," which includes configuring code scanning. The "Managing code scanning alerts for your repository" documentation also notes that configuring the severity for pull request blocking is a security setting.