You discover that a secret (e.g., a token or password) was accidentally committed to a GitHub repository. What is the first step you should take to mitigate the risk?
Answer : B
The immediate priority is to revoke or rotate the exposed credential so it can no longer be used; once it's invalidated, you can safely proceed with history-rewriting or other cleanup steps.
What needs to be done to ensure that only specific repositories can access the runners in an organization runner group?
Answer : C
In the organization's runner group settings, switch the access from ''All repositories'' to ''Selected repositories'' and then explicitly choose which repos may use those runners.
You have subscribed to GitHub Premium Support, and you need to submit a support ticket. GitHub Premium Support can help you with:
Answer : B
GitHub Premium Support includes assistance with installing and using GitHub Enterprise Server, ensuring your deployment is configured correctly and any installation issues are resolved.
Which of the following actions can a user with Write permissions perform in a GitHub repository?
Answer : B
Users granted Write permission can push commits to non-protected branches, allowing them to update code without needing administrative rights.
What do you need to successfully generate a support bundle on a GitHub Enterprise Server?
Answer : C
You must have administrator-level SSH access to the GitHub Enterprise Server appliance so you can run the ghe-support-bundle command over SSH and capture the bundle locally.
Why is a GitHub App preferred over a PAT for machine authentication?
Answer : B
GitHub Apps issue short-lived installation tokens that you scope to only the permissions and repositories your automation needs, reducing blast radius and automatically rotating credentials.
Which of the following is true about outside collaborators in a GitHub organization?
Answer : A
Outside collaborators aren't organization members; instead, they're granted explicit access - at read, write, or admin level - to only the repositories you choose.