A secret scanning alert should be closed as “used in tests” when a secret is:
Answer(s): B
If a secret is intentionally used in a test environment and poses no real-world security risk, you may close the alert with the reason"used in tests". This helps reduce noise and clarify that the alert was reviewed and accepted as non-critical.Just being in a test file isn't enough unless itspurpose is purely for testing.
https://docs.github.com/en/enterprise-server@3.13/code-security/code-scanning/creating-an-advanced-setup-f or-code-scanning/codeql-code-scanning-for-compiled-languages
What happens when you enable secret scanning on a private repository?
Answer(s): A
GitHub secret scanning detects and alerts on sensitive data exposure, such as API keys and credentials, in your code repositories. Use it to protect your secrets, ensure secure and compliant development practices, and reduce the risk of data breaches and unauthorized access.GitHub has scanned public repositories for secrets (like API keys and tokens) for several years. Secret scanning protects our partners and our customers from unauthorized use of the services protected by those secrets. Just this month, 8% of active GitHub repositories committed a secret that was caught by secret scanning.At GitHub Satellite, we announced secret scanning for private repositories, part of GitHub Advanced Security. We’re bringing the same lightning-fast scanning engine and broad set of 24 partners (including all the major cloud providers and many common SaaS providers) to your private repository, so you can catch secrets as soon as they’re checked in. Repository admins will be notified about any commit that contains a secret, and can quickly view all detected secrets in the repo’s Security tab.
https://docs.github.com/en/code-security/secret-scanning/managing-alerts-from-secret-scanning/about-alerts
Which of the following statements best describes secret scanning push protection?
Secret scanning push protection is a security feature that prevents sensitive information like API keys or tokens from being pushed to a repository in the first place. It works by proactively scanning code during the push process and blocking any attempts to commit secrets. This differs from regular secret scanning, which only detects secrets after they have been committed.
https://docs.github.com/en/code-security/secret-scanning/introduction/about-push-protection
What is a security policy?
Adding a security policy to your repositoryYou can give instructions for how to report a security vulnerability in your project by adding a security policy to your repository.About security policiesTo give people instructions for reporting security vulnerabilities in your project, you can add a SECURITY.md file to your repository's root, docs, or .github folder. Adding this file to this part(s) of your repository automatically creates a row with a description where people can review it. When someone creates an issue in your repository, they will see a link to your project's security policy.
https://docs.github.com/en/code-security/getting-started/adding-a-security-policy-to-your-repository
Which of the following information can be found in a repository’s Security tab?
You can find security alerts from Dependabot, Secret scanning, and Code scanning under your repository's Security tab. Security alerts for a repository are visible to people with write, maintain, or admin access to the repository and, when the repository is owned by an organization, organization owners.
https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository
Post your Comments and Discuss Microsoft GH-500 exam prep with other Community members: