Question 800
During an operational security assessment at a public-sector technology agency, the team documents this issue: An untrusted fork workflow attempts to access secret-backed publication privileges. The affected delivery process supports citizen applications and reusable infrastructure; accountability and service availability depend on controlled delivery. Which TWO responses form a sound implementation-and-verification pair for this issue? (Select TWO.)
Explanation
Correct Answers
Correct corrective action. Set explicit minimum GITHUB_TOKEN permissions per workflow or job and grant write scopes only to tasks that genuinely modify repository state. The action targets the recorded failure (An untrusted fork workflow attempts to access secret-backed publication privileges), and is intended to reduce the corresponding risk: Default broad workflow credentials can be abused by compromised actions or untrusted pull requests.
Correct verification. A read-only PR test succeeds without write privileges and a controlled release workflow receives narrowly scoped publication rights. The measurement or controlled test provides evidence for the issue (An untrusted fork workflow attempts to access secret-backed publication privileges) and complements the selected corrective action rather than simply repeating a recommendation.
Incorrect Answers
Assign stakeholder, basic, and administrative capabilities according to job responsibilities, with scoped team and project security groups. The paired controls concern github_token least privilege workflow, not that measure.
Use a GitHub App installation with scoped repository permissions for automation rather than an employee-owned broad personal token when appropriate. It is not the complementary risk control for github_token least privilege workflow.
The deployed workload accesses the intended resource without a stored secret and is denied access to unrelated subscriptions. The two-part github_token least privilege workflow control remains unsatisfied.