Secret scanning will ignore a secret_scanning.yml file that
Answer(s): C
Excluding folders and files from secret scanningYou can customize secret scanning to automatically close alerts for secrets found in specific directories or files by configuring a secret_scanning.yml file in your repository.* If there are more than 1,000 entries in paths-ignore, secret scanning will only exclude the first 1,000 directories from scans.*-> If secret_scanning.yml is larger than 1 MB, secret scanning will ignore the entire file.
https://docs.github.com/en/code-security/secret-scanning/using-advanced-secret-scanning-and-push-protectio n-features/excluding-folders-and-files-from-secret-scanning
If default code security settings have not been changed at the repository, organization, or enterprise level, which repositories receive Dependabot alerts?
Answer(s): B
When Dependabot detects vulnerable dependencies in your repositories, we generate a Dependabot alert and display it on the Security tab for the repository. GitHub notifies the maintainers of affected repositories about the new alert according to their notification preferences. Dependabot is enabled by default on all public repositories, and needs to be enabled on private repositories.Note:By default, no repositories receive Dependabot alerts unless configuration is explicitly enabled. GitHub does not enable Dependabot alerts automatically for any repositories unless:The feature is turned on manuallyIt's configured at the organization or enterprise level via security policiesThis includes public, private, and enterprise-owned repositories —manual activation is required.
https://docs.github.com/en/code-security/dependabot/dependabot-alerts/configuring-notifications-for-dependab ot-alerts
How would you build your code within the CodeQL analysis workflow? Each answer presents a complete solution. (Choose two.)
Answer(s): B,D
[B] Build ModesThe CodeQL Action supports different build modes for analyzing the source code. The available build modes are:none: The database will be created without building the source code. Available for all interpreted languages and some compiled languages.*-> autobuild: The database will be created by attempting to automatically build the source code. Available for all compiled languages.manual: The database will be created by building the source code using a manually specified build command. To use this build mode, specify manual build steps in your workflow between the init and analyze steps. Available for all compiled languages.[D] ActionsThis repository contains several actions that enable you to analyze code in your repository using CodeQL and upload the analysis to GitHub Code Scanning. Actions in this repository also allow you to upload to GitHub analyses generated by any SARIF-producing SAST tool.Actions for CodeQL analyses:*-> init: Sets up CodeQL for analysis.analyze: Finalizes the CodeQL database, runs the analysis, and uploads the results to Code Scanning.
https://github.com/github/codeql-action
You are managing code scanning alerts for your repository. You receive an alert highlighting a problem with data flow. What do you click for additional context on the alert?
Answer(s): A
When dealing with a data flow issue in a code scanning alert, clicking on "Show paths" provides a detailed view of the data's journey through the code. This includes the source of the data, the path it takes, and where it ends up (the sink). This information is crucial for understanding how untrusted data might reach sensitive parts of your application and helps in identifying where to implement proper validation or sanitization.
https://docs.github.com/en/code-security/code-scanning/managing-code-scanning-alerts/assessing-code-scan ning-alerts-for-your-repository
Which of the following is the best way to prevent developers from adding secrets to the repository?
Answer(s): D
Enabling push protection for your repositoryWith push protection, secret scanning blocks contributors from pushing secrets to a repository and generates an alert whenever a contributor bypasses the block.
https://docs.github.com/en/code-security/secret-scanning/enabling-secret-scanning-features/enabling-push-pro tection-for-your-repository
Post your Comments and Discuss Microsoft GH-500 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the GH-500 content, but please register or login to continue.