300-745 practice question 4 of 15

A software development company relies on GitHub for managing the source code and is committed to maintaining application security. The company must…

Full set: 58 questions
A software development company relies on GitHub for managing the source code and is committed to maintaining application security. The company must ensure that known software vulnerabilities are not introduced to the application. The company needs a capability within GitHub that can analyze semantic versioning and flag any software components that pose security risks. Which GitHub feature must be used?
Answer options
A: Depend-a-bot Correct answer
B: Sealed boxes
C: GitHub Actions
D: Artifact attestations
Correct Answer:
A. Depend-a-bot
Explanation

The feature described is GitHub Dependabot, which is represented here as "Depend-a-bot". Dependabot automatically scans a repository's dependency files (e.g., package.json, pom.xml) to detect dependencies with known vulnerabilities listed in the GitHub Advisory Database. When a vulnerability is found, it generates a Dependabot alert. It can also automatically create pull requests to update the dependency to the minimum secure version, respecting semantic versioning (SemVer) to ensure compatibility and minimize breaking changes. This directly addresses the company's need to flag and manage vulnerable software components.

Why Incorrect

B. Sealed boxes: This refers to an encryption mechanism (using libsodium) for protecting secrets within GitHub Actions, not for scanning software component vulnerabilities.
C. GitHub Actions: This is a CI/CD and workflow automation platform. While it can be used to run vulnerability scanning tools, it is not the specific feature that performs the dependency analysis itself.
D. Artifact attestations: This feature provides verifiable, signed metadata about how a software artifact was built (provenance), securing the supply chain, but it does not scan for vulnerabilities within dependencies. ---

References

1. GitHub Docs, "About Dependabot alerts": "Dependabot alerts identify dependencies with known vulnerabilities and report them to you... GitHub scans dependency files... and creates a dependency graph... When GitHub detects a vulnerable dependency in your repository, we generate a Dependabot alert."

Source: GitHub, Inc. Official Documentation. Retrieved from https://docs.github.com/en/code-security/dependabot/dependabot-alerts/about-dependabot-alerts

2. GitHub Docs, "Configuring Dependabot security updates": "Dependabot security updates make it easier for you to fix vulnerable dependencies... When you enable Dependabot security updates, GitHub automatically creates a pull request to update the dependency to the minimum possible secure version needed to avoid the vulnerability."

Source: GitHub, Inc. Official Documentation. Retrieved from https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/configuring-dependabot-security-updates

3. GitHub Docs, "Using secrets in GitHub Actions": "Secrets are encrypted environment variables that you create in an organization, repository, or repository environment... GitHub uses a libsodium sealed box to help ensure that secrets are encrypted before they reach GitHub and remain encrypted until you use them in a workflow."

Source: GitHub, Inc. Official Documentation. Retrieved from https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions

4. GitHub Docs, "About artifact attestations": "Artifact attestations create a verifiable link between a software artifact and the workflow that built it... This allows you to verify the origin and build process of your software, helping you meet security requirements like SLSA."

Source: GitHub, Inc. Official Documentation. Retrieved from https://docs.github.com/en/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds

Scroll to Top