You have a GitHub repository named Repo1 that runs CodeQL code scanning. Repo1 contains both Java and Kotlin source code. Repo1 generates additional source files during compilation.Recent alerts indicate that Kotlin files cannot be processed without a build.You need to ensure that CodeQL analyzes both the Java files and the Kotlin files and includes the generated source files in the CodeQL database.What should you do?
Answer(s): D
To fix this issue, you must switch your CodeQL workflow execution configuration from using the default "none" build mode to a manual build step configuration. For repositories that mix Java and Kotlin alongside dynamic code generation during compilation, explicit build commands ensure CodeQL intercepts the compilation process to catalog the generated source files and analyze the Kotlin files completely.Update the CodeQL Initialization Language MatrixEnsure CodeQL treats both languages as unified by specifying java-kotlin inside your initialization step.Update the languages parameter in the github/codeql-action/init step.Use java-kotlin instead of java to instruct the extractor to capture both source formats.- name: Initialize CodeQLuses: github/codeql-action/init@v3with:languages: 'java-kotlin'# Optional: explicitly tell CodeQL not to run default build-mode none build-mode: 'manual'
https://docs.github.com/en/code-security/reference/code-scanning/troubleshoot-analysis-errors/kotlin-detected-in-no-build
What kind of repository permissions do you need to request a Common Vulnerabilities and Exposures (CVE) identification number for a security advisory?
Anyone with admin permissions to a security advisory can request a CVE identification number.
https://docs.github.com/en/code-security/security-advisories/working-with-repository-security-advisories/about-repository-security-advisories
Which of the following tasks can be performed by a security team as a proactive measure to help address secret scanning alerts? Each answer presents a complete solution. (Choose two.)
[D] Integrate Secret Scanning into the Development Lifecycle:*-> Pre-commit hooks:Implement pre-commit hooks in version control systems to scan code for secrets before they are even committed.[B] Implement a Comprehensive Secret Scanning Policy:Define Secrets: Clearly define what constitutes a secret within your organization.Scanning Scope: Specify which environments and repositories need to be scanned and how often. Roles and Responsibilities: Define roles and responsibilities for managing secret scanning and remediation.Incorrect:[A] You can manage the lifecycle of your enterprise's user accounts from your identity provider (IdP) using System for Cross-domain Identity Management (SCIM).
https://soteri.io/blog/secret-scanning-tools-for-the-sdlc
DRAG DROP (Drag and Drop is not supported)You have a GitHub Enterprise Server instance named Server1 that contains multiple private repositories across six organizations. Server1 uses GitHub Advanced Security.You need to enable code scanning on Server1. The solution must ensure that the organizations can enable code scanning at the organization or repository level.Which three commands should you run in sequence? To answer, move the appropriate commands from the list of commands to the answer area and arrange them in the correct order.Note: More than one order of answer choices is correct. You will receive credit for any of the correct orders you select.Select and Place:
Answer(s): A
To enable code scanning on a GitHub Enterprise Server instance while allowing individual organizations to manage it at their own discretion, the following three commands must be run in sequence via SSH: ghe-config app.minio.enabled true ghe-config app.code-scanning.enabled true ghe-config-applyStep 1: Run ghe-config app.minio.enabled true ghe-config app.minio.enabled true — Code scanning relies on an internal MinIO storage service to hold analysis data and CodeQL results. This command activates that prerequisite backend service.Step 2: Run ghe-config app.code-scanning.enabled true ghe-config app.code-scanning.enabled true — This enables the overall code scanning capability at the appliance level. By doing this without explicitly overriding or forcing an enterprise-wide enforcement policy, organizations and individual repositories retain the rights to enable or disable it as needed.Step 3: Run ghe-config-applyApply the configurations to the server appliance ghe-config-apply — This final command must be run to actively apply, initialize, and reload the server configuration with the new settings.
https://docs.github.com/en/enterprise-server@3.21/code-security/how-tos/secure-at-scale/configure-enterprise -security/establish-complete-coverage/enabling-github-advanced-security-for-your-enterprise
Which of the following pre-defined roles is required to manage code scanning alerts in a repository?
Answer(s): C
Access requirements for security featuresIn this section, you can find the access required for security features, such as GitHub Advanced Security features.Note: Repository roles for organizationsYou can give organization members, outside collaborators, and teams of people different levels of access to repositories owned by an organization by assigning them to roles. Choose the role that best fits each person or team's function in your project without giving people more access to the project than they need.From least access to most access, the roles for an organization repository are:Read: Recommended for non-code contributors who want to view or discuss your projectTriage: Recommended for contributors who need to proactively manage issues, discussions, and pull requests without write accessWrite: Recommended for contributors who actively push to your projectMaintain: Recommended for project managers who need to manage the repository without access to sensitive or destructive actionsAdmin: Recommended for people who need full access to the project, including sensitive and destructive actions like managing security or deleting a repositoryNote:
https://docs.github.com/en/organizations/managing-user-access-to-your-organizations-repositories/managing-r epository-roles/repository-roles-for-an-organization
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.