What is the minimum role needed in order to view the secret scanning alerts list within the Security tab of a repository?
Answer(s): C
Viewing and filtering alerts from secret scanningWho can use this feature?Repository owners, organization owners, security managers, and users with the admin roleNote: About the secret scanning alerts pageWhen you enable secret scanning for a repository or push commits to a repository with secret scanning enabled, GitHub scans the contents for secrets that match patterns defined by service providers.When secret scanning detects a secret, GitHub generates an alert. GitHub displays an alert in the Security tab of the repository.
https://docs.github.com/en/code-security/secret-scanning/managing-alerts-from-secret-scanning/viewing-alerts
Which of the following is the best way to dispose of a compromised secret?
Answer(s): B
Remediating a leaked secret in your repositoryRevoke the secretIt is not sufficient to simply remove the secret from your codebase. The most important remediation step is revoking the secret with the secret's provider. By revoking the secret, you drastically reduce the potential for the secret to be exploited.Note:You should consider any leaked secret to be immediately compromised and it is essential that you undertake proper remediation steps, such as revoking the secret. Simply removing the secret from the codebase, pushing a new commit, or deleting and recreating the repository do not prevent the secret from being exploited.
https://docs.github.com/en/code-security/secret-scanning/working-with-secret-scanning-and-push-protection/re mediating-a-leaked-secret
Which of the following secret scanning features can verify whether a secret is still active?
Performing validity checksValidity checks help you prioritize alerts by telling you which secrets are active or inactive.
https://docs.github.com/en/code-security/secret-scanning/introduction/about-secret-scanning
Using advanced setup, which code scanning configuration would help detect vulnerabilities before they are added to a shared branch?
Code scanning merge protection prevents a pull request from merging into a protected branch if it contains security issues or if required code scanning tools are missing or incomplete. This feature, configured using GitHub Rulesets>>, acts as a safeguard, blocking merges until all code scanning alerts are addressed to a defined severity level and the analysis is complete.Code Scanning Configuration: You configure code scanning tools (like CodeQL) in your repository to run automatically on pull requests using the pull_request: event trigger.Incorrect:[Not A]workflow_dispatch is a GitHub Actions trigger that allows users to manually start a workflow on demand, offering flexibility for tasks like deployments or testing that don't need to run automatically on every code change. This trigger can be configured with custom inputs to provide different parameters for each manual run, giving users more control over when and how specific workflows are executed.
https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/custo mizing-your-advanced-setup-for-code-scanning
You have a GitHub Enterprise subscription that contains multiple organizations. Each organization contains repositories that use GitHub Advanced Security.You need to manage code security and analysis policies across all the organizations. The solution must ensure that the organization owners can manage repository membership and day-to-day collaboration within their respective organization.What should you configure?
To achieve this, you should configure code security and analysis policies at the GitHub Enterprise account level while assigning members the Organization Owner role within their respective organizations.Enforcing these settings at the Enterprise level overrides lower-level changes. This allows you to globally control GitHub Advanced Security (GHAS) policies while delegating membership and daily operations to individual organization administrators.
https://docs.github.com/en/enterprise-server@3.20/organizations/collaborating-with-groups-in-organizations/ab out-organizations
Post your Comments and Discuss Microsoft GH-500 exam prep with other Community members: