Question 320
A review for a managed service provider during a runner fleet capacity review records this problem: Consumers pass a repository path to a custom action, but the action silently uses a hard-coded folder instead. How can the team reduce the chance that this failure returns?
- Add input-default and override tests to the action release suite.
- Add a checksum output roundtrip test to the action repository.
- Validate action metadata and a sample local consumer on every release.
- Run Marketplace metadata checks before marking a public release ready.
Explanation
Correct Answer
A:This control addresses the recurring source of the defect at a managed service provider: The action omits a documented input contract and ignores the caller's with configuration.
Incorrect Answers
B:The proposed routine targets Composite step output file. At a managed service provider, recurrence is more directly prevented by: Add input-default and override tests to the action release suite.
C:This safeguard protects a different workflow involving Composite action metadata; the actual root cause requires: Add input-default and override tests to the action release suite.
D:This control would reduce risk around Marketplace listing metadata, but it does not prevent the reported failure from recurring. The fitting safeguard is: Add input-default and override tests to the action release suite.
Question 321
A CI/CD readiness check for a managed service provider reveals: Consumers pass a repository path to a custom action, but the action silently uses a hard-coded folder instead. What first investigation step is most appropriate?
- Inspect the interpolation boundary between expression evaluation and shell parsing.
- Inspect action.yml inputs and the code reading INPUT variables.
- Inspect the composite step's run and shell keys.
- Inspect the resolved action commit in run logs and upstream tag history.
Explanation
Correct Answer
B:Checking this first at a managed service provider narrows the fault without prematurely changing settings. The subsequent correction is: Declare the path as an action input and consume its supplied or default value explicitly.
Incorrect Answers
A:The proposed check assumes a separate Untrusted action input failure. To narrow this case first: Inspect action.yml inputs and the code reading INPUT variables.
C:This inspection is useful when investigating Composite shell declaration, but it is not the first discriminator here. Inspect instead: Inspect action.yml inputs and the code reading INPUT variables.
D:The proposed check assumes a separate Action version tag drift failure. To narrow this case first: Inspect action.yml inputs and the code reading INPUT variables.
Question 322
Engineers supporting a managed service provider are investigating this situation: Consumers pass a repository path to a custom action, but the action silently uses a hard-coded folder instead. Which prerequisite or trust boundary must be satisfied?
- The chosen shell must be available on all supported runner images.
- Secret-bearing jobs must not execute raw untrusted string interpolation.
- Validate untrusted paths before using them in filesystem operations.
- The checksum should be based on the intended artifact, not a temporary debug file.
Explanation
Correct Answer
C:Applying the boundary prevents the workflow from taking an unsafe shortcut while the remedy is implemented: Declare the path as an action input and consume its supplied or default value explicitly.
Incorrect Answers
A:The constraint around Composite shell declaration is not the governing gate for a managed service provider. The original defect makes this condition decisive: Validate untrusted paths before using them in filesystem operations.
B:This constraint addresses Untrusted action input, whereas the described change must first satisfy: Validate untrusted paths before using them in filesystem operations.
D:The constraint around Composite step output file is not the governing gate for a managed service provider. The original defect makes this condition decisive: Validate untrusted paths before using them in filesystem operations.
Question 323
A workflow review for a scientific instrumentation vendor identifies a specific risk: A composite action computes a package version, but later workflow steps cannot reference the published version as an action output. Which implementation step best addresses this exact issue?
- Configure the source action repository's Actions access policy for the permitted consuming repositories.
- Add a checkout step before a local path action or explicitly download inputs for a remote action.
- Align the Dockerfile entrypoint and action metadata args with the script's argument parser.
- Declare an output in action.yml and map its value from the producing step's output.
Explanation
Correct Answer
D:The targeted change is appropriate because the internal step result is not exposed through the action's output contract. It leads directly to a checkable outcome: A caller step reads the version from the action step's outputs context.
Incorrect Answers
A:This adjustment addresses Private action access instead. For a scientific instrumentation vendor, the reported problem is caused by: The internal step result is not exposed through the action's output contract.
B:That work belongs to a different failure involving Action repository checkout. The described workflow needs the narrower change because the internal step result is not exposed through the action's output contract.
C:The proposal may suit Docker entrypoint argument, but it does not resolve the mechanism visible at a scientific instrumentation vendor: The internal step result is not exposed through the action's output contract.
Question 324
During an embedded build certification at a scientific instrumentation vendor, engineers observe the following: A composite action computes a package version, but later workflow steps cannot reference the published version as an action output. Which root cause should guide the correction?
- The distribution package is missing mandatory metadata or publishing settings.
- Untrusted metadata is injected into shell syntax rather than handled as inert data.
- Action-relative files were resolved against the repository workspace instead of the action package.
- The internal step result is not exposed through the action's output contract.
Explanation
Correct Answer
D:The reported symptoms follow from this specific mechanism: The internal step result is not exposed through the action's output contract. A focused corrective action would be: Declare an output in action.yml and map its value from the producing step's output.
Incorrect Answers
A:Although relevant to Marketplace listing metadata, this diagnosis does not match the described failure. The actual causal link is: The internal step result is not exposed through the action's output contract.
B:This relates to Untrusted action input; it would call for different acceptance evidence. For this case, the root cause is: The internal step result is not exposed through the action's output contract.
C:That explanation predicts a separate Action working directory problem. The condition reported by a scientific instrumentation vendor instead follows from: The internal step result is not exposed through the action's output contract.
Question 325
A review for a scientific instrumentation vendor during an embedded build certification records this problem: A composite action computes a package version, but later workflow steps cannot reference the published version as an action output. Which test result best establishes that the issue is corrected?
- The job resolves the local action and completes on a fresh clean runner.
- The action's release passes the Marketplace validation and its listing references an approved version.
- The expected source paths are present before the action starts and the action completes.
- A caller step reads the version from the action step's outputs context.
Explanation
Correct Answer
D:The proposed result demonstrates that the original technical gap is closed: The internal step result is not exposed through the action's output contract.
Incorrect Answers
A:The metric relates to Local action relative path and would leave the actual gap untested. A valid check is: A caller step reads the version from the action step's outputs context.
B:That result could verify Marketplace listing metadata, but not the failure reported at a scientific instrumentation vendor. The relevant acceptance result is: A caller step reads the version from the action step's outputs context.
C:The proposed signal checks a different behavior involving Action repository checkout. Here evidence must instead demonstrate: A caller step reads the version from the action step's outputs context.
Question 326
A CI/CD readiness check for a scientific instrumentation vendor reveals: A composite action computes a package version, but later workflow steps cannot reference the published version as an action output. What operational principle best describes the safe approach?
- Container action configuration spans metadata, image entrypoint and argument handling.
- Inputs originating outside the trusted repository are never safe shell programs by default.
- JavaScript action compatibility is defined by metadata and packaged runtime expectations.
- Outputs must be declared and mapped across the component interface.
Explanation
Correct Answer
D:This principle governs the problem at a scientific instrumentation vendor. Applying it leads to the targeted change: Declare an output in action.yml and map its value from the producing step's output.
Incorrect Answers
A:This rule governs Docker entrypoint argument, not the constraint described by a scientific instrumentation vendor. The applicable rule is: Outputs must be declared and mapped across the component interface.
B:That concept may matter in a different Untrusted action input design. Here the operational boundary is explained by: Outputs must be declared and mapped across the component interface.
C:This principle does not account for the observed behavior; it belongs to JavaScript action runtime. The relevant one is: Outputs must be declared and mapped across the component interface.
Question 327
A CI/CD readiness check for an analytical equipment developer reveals: A composite action computes a package version, but later workflow steps cannot reference the published version as an action output. What preventive measure fits this exact failure mode?
- Monitor action updates and review new commits before changing pins.
- Include consumer tests that assert every documented action output exists.
- Test caller input propagation from YAML through to the container process.
- Document checkout requirements in the action's consumer example.
Explanation
Correct Answer
B:The failure it prevents is: The internal step result is not exposed through the action's output contract.
Incorrect Answers
A:The proposed routine targets Action version tag drift. At an analytical equipment developer, recurrence is more directly prevented by: Include consumer tests that assert every documented action output exists.
C:This control would reduce risk around Docker entrypoint argument, but it does not prevent the reported failure from recurring. The fitting safeguard is: Include consumer tests that assert every documented action output exists.
D:The proposed routine targets Action repository checkout. At an analytical equipment developer, recurrence is more directly prevented by: Include consumer tests that assert every documented action output exists.
Question 328
Engineers supporting an analytical equipment developer are investigating this situation: A composite action computes a package version, but later workflow steps cannot reference the published version as an action output. Which diagnostic inspection should happen first?
- Inspect action metadata outputs and the producing step id.
- Inspect action.yml runs using and the first runtime initialization error.
- Inspect the target action directory for action.yml and a valid runs block.
- Inspect the interpolation boundary between expression evaluation and shell parsing.
Explanation
Correct Answer
A:If confirmed, the appropriate response is: Declare an output in action.yml and map its value from the producing step's output.
Incorrect Answers
B:This inspection is useful when investigating JavaScript action runtime, but it is not the first discriminator here. Inspect instead: Inspect action metadata outputs and the producing step id.
C:The proposed check assumes a separate Composite action metadata failure. To narrow this case first: Inspect action metadata outputs and the producing step id.
D:Investigating Untrusted action input would delay diagnosis of the condition at an analytical equipment developer; the direct first check is: Inspect action metadata outputs and the producing step id.
Question 329
In preparation for a supply-chain evidence audit, engineers supporting an analytical equipment developer notice: A composite action computes a package version, but later workflow steps cannot reference the published version as an action output. What condition should govern whether this change may proceed?
- Secret-bearing jobs must not execute raw untrusted string interpolation.
- Caller-specific checkout paths must be reflected in the action reference.
- Do not expose secrets through a public action output.
- The chosen shell must be available on all supported runner images.
Explanation
Correct Answer
C:This condition protects the relevant trust or execution boundary at an analytical equipment developer. Ignoring it would recreate the defect: The internal step result is not exposed through the action's output contract.
Incorrect Answers
A:This constraint addresses Untrusted action input, whereas the described change must first satisfy: Do not expose secrets through a public action output.
B:The boundary may be necessary for a separate Local action relative path workflow, not the primary risk here. The relevant constraint is: Do not expose secrets through a public action output.
D:This constraint addresses Composite shell declaration, whereas the described change must first satisfy: Do not expose secrets through a public action output.
Question 330
During a delivery tracking service release at a pharmaceutical distribution network, engineers observe the following: A JavaScript action catches an API exception and prints a warning but still returns success to a release workflow. What is the best focused remediation?
- Write the checksum to GITHUB_OUTPUT under the producing step id and reference that step output.
- Supply valid action metadata and complete the Marketplace publishing requirements for the release.
- Pass the label as a safely quoted argument or environment value and validate its allowed format.
- Propagate a failed process exit status or use supported action failure signaling for unrecoverable errors.
Explanation
Correct Answer
D:For a pharmaceutical distribution network, this addresses the governing failure: The action swallows the exception without marking the step failed. Success would be demonstrated by: A simulated API failure causes the action step and dependent release check to fail.
Incorrect Answers
A:That work belongs to a different failure involving Composite step output file. The described workflow needs the narrower change because the action swallows the exception without marking the step failed.
B:The proposal may suit Marketplace listing metadata, but it does not resolve the mechanism visible at a pharmaceutical distribution network: The action swallows the exception without marking the step failed.
C:This adjustment addresses Untrusted action input instead. For a pharmaceutical distribution network, the reported problem is caused by: The action swallows the exception without marking the step failed.
GitHub Actions (GH-200) Practice Tests