Which of the following is required to block the merge of a pull request containing critical vulnerabilities? Each correct answer presents part of the solution. (Choose two.)
Answer(s): C,D
Set code scanning merge protectionYou can use rulesets to set code scanning merge protection for pull requests.You can use rulesets to prevent pull requests from being merged when one of the following conditions is met:*-> A required tool found a code scanning alert of a severity that is defined in a ruleset.A required code scanning tool's analysis is still in progress.A required code scanning tool is not configured for the repository.Note: Creating a merge protection ruleset for a repository1. On GitHub, navigate to the main page of the repository.2. Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.3. In the left sidebar, under "Code and automation," click Rules, then click Rulesets.4. Click New ruleset.5. To create a ruleset targeting branches, click New branch ruleset.6. Under "Ruleset name," type a name for the ruleset.7. Optionally, to change the default enforcement status, click Disabled and select an enforcement status.8. Under "Branch protections", select Require code scanning results.9. Under "Required tools and alert thresholds", click Add tool and select a code scanning tool with the dropdown. For example, "CodeQL".10. Next to the name of a code scanning tool:Click Alerts and select one of: None, Errors, Errors and Warnings or All.Click Security alerts and select one of: None, Critical, High or higher, Medium or higher, or All.
https://docs.github.com/en/code-security/code-scanning/managing-your-code-scanning-configuration/set-code-scanning-merge-protection
What is the first step you should take to fix an alert in secret scanning?
Answer(s): D
Resolving alerts from secret scanningAfter reviewing the details of a secret scanning alert, you should fix and then close the alert.Fixing alertsOnce a secret has been committed to a repository, you should consider the secret compromised. GitHub recommends the following actions for compromised secrets:Verify that the secret committed to GitHub is valid.Review and update any services that use the old token. For GitHub personal access tokens, delete the compromised token and create a new token.Depending on the secret provider, check your security logs for any unauthorized activity.
https://docs.github.com/en/enterprise-server@3.17/code-security/secret-scanning/managing-alerts-from-secret -scanning/resolving-alerts
Where in the repository can you give additional users access to secret scanning alerts?
Answer(s): C
About access management for repositoriesFor each repository that you administer on GitHub, you can see an overview of every team or person with access to the repository. From the overview, you can also invite new teams or people, change each team or person's role for the repository, or remove access to the repository.This overview can help you audit access to your repository, onboard or off-board contractors or employees, and effectively respond to security incidents.Inviting a team or person1. On GitHub, navigate to the main page of the repository.*-> 2- Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.3. In the "Access" section of the sidebar, click Collaborators & teams.4.To the right of "Manage access", click Add people or Add teams.5. In the search field, start typing the name of the team or person to invite, then click a name in the list of matches.6. Under "Choose a role", select the repository role to grant to the team or person, then click Add NAME to REPOSITORY.
https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-teams-and-people-with-access-to-your-repository
Which CodeQL query suite provides queries of lower severity than the default query suite?
Answer(s): B
The security-extended query suite includes additional CodeQL queries that detect lower severity issues than those in the default security-and-quality suite.About CodeQL query suitesWith CodeQL code scanning, you can select a specific group of CodeQL queries, called a CodeQL query suite, to run against your code. The following built-in query suites are available through GitHub:default query suite.security-extended query suite. This suite is referred to as the "Extended" query suite on GitHub.Currently, both the default query suite and the security-extended query suite are available for default setup for code scanning.
https://docs.github.com/en/code-security/code-scanning/managing-your-code-scanning-configuration/codeql-q uery-suites
Which of the following features helps to prioritize secret scanning alerts that present an immediate risk?
Push protection is a secret scanning feature that is designed to prevent sensitive information, such as secrets or tokens, from being pushed to your repository in the first place. Unlike secret scanning, which detects secrets after they have been committed, push protection proactively scans your code for secrets during the push process and blocks the push if any are detected.Push protection helps you avoid the risks associated with exposed secrets, like unauthorized access to resources or services. With this feature, developers get immediate feedback and can address potential issues before they become a security concern.
https://docs.github.com/en/code-security/secret-scanning/introduction/about-push-protection
Post your Comments and Discuss Microsoft GH-500 exam prep with other Community members: