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
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
Share your comments for Microsoft GH-500 exam with other users:
helpful content
oracle 19c is complex db
helpful for practice
support team is fast and deeply knowledgeable. i appreciate that a lot.
helpful questions
thanks for question
the software is provided for free so this is a big change. all other sites are charging for that. also that fucking examtopic site that says free is not free at all. you are hit with a pay-wall.
i need exam questions nca 6.5 any help please ?
just took the comptia cybersecurity analyst (cysa+) - wished id seeing this before my exam
very helpful
i need this exam
nice questions... are these questions the same of the exam?
need to view
highly appreciate for your sharing.
kindly share this dump. thank you
link plz for download
data quality oecd
rman is one good recovery technology
need it thx
good questions
good one nice revision
i love this thank you i need
question # 142: data governance is not one of the deliverables in the document and content management context diagram.
most answers not correct here
what % of questions do we get in the real exam?
i just want to tell you. i took my microsoft az-104 exam and passed it. your program was awesome. i especially liked your detailed questions and answers and practice tests that made me well-prepared for the exam. thanks to this website!!!
all the best
very usefull document
nice and helpful questions
i found the questions helpful
q 105 . ans is d
i have interest to get a sybase iq dba certification
want to pass exm.
are the answers correct?