Question 270
During an operational security assessment at a public-sector technology agency, the team documents this issue: An untrusted workflow can overwrite a shared package release because token scopes are excessive. The affected delivery process supports citizen applications and reusable infrastructure; accountability and service availability depend on controlled delivery. Choose TWO statements that provide both the appropriate correction and a meaningful test of its success. (Select TWO.)
Explanation
Correct Answers
Correct corrective action. Publish versioned packages to GitHub Packages with repository-scoped workflow permissions and verified consuming-repository access. The action targets the recorded failure (An untrusted workflow can overwrite a shared package release because token scopes are excessive), and is intended to reduce the corresponding risk: Overly broad tokens or missing package access can expose packages or stop dependent builds.
Correct verification. A permitted repository downloads the pinned release with its workflow token and an unrelated repository receives access denied. The measurement or controlled test provides evidence for the issue (An untrusted workflow can overwrite a shared package release because token scopes are excessive) and complements the selected corrective action rather than simply repeating a recommendation.
Incorrect Answers
Configure a governed Azure Artifacts feed with intentional upstream sources and feed permissions for producers and consumers. This does not supply the required GitHub packages scoped credentials action-and-control pair.
The promoted package version matches the tested immutable package and is visible through the approved release view. The GitHub packages scoped credentials implementation and safeguard are still missing.
Apply semantic versioning rules and automated release notes so breaking APIs, additive features and fixes are signaled by appropriate version increments. The two-part GitHub packages scoped credentials control remains unsatisfied.