How can GitHub Actions encrypted secrets be used in if: conditionals within a workflow job?
How can GitHub Actions encrypted secrets be used in if: conditionals within a workflow job?A . Set the encrypted secret as a job-level environment variable and then reference the environment variable within the conditional statement.B . Create a job dependency that exposes the encrypted secret as a job output, which...
Which of the following options should you use?
As a developer, you are designing a workflow and need to communicate with the runner machine to set environment variables, output values used by other actions, add debug messages to the output logs, and other tasks. Which of the following options should you use?A . environment variablesB . workflow commandsC...
Which default GitHub environment variable indicates the name of the person or app that initiated a workflow?
Which default GitHub environment variable indicates the name of the person or app that initiated a workflow?A . ENV_ACTORB . GITHUB_WORKFLOW_ACTORC . GITHUB_ACTORD . GITHUB_USERView AnswerAnswer: C Explanation: The GITHUB_ACTOR environment variable indicates the name of the person or app that initiated the workflow. This variable is automatically provided by...
How should you install the bats NPM package in your workflow?
How should you install the bats NPM package in your workflow? A) B) C) D) A . Option AB . Option BC . Option CD . Option DView AnswerAnswer: D Explanation: The correct syntax includes specifying the job (example-job), the runner (ubuntu-latest), and the necessary step (npm install -g bats)...
How many jobs will result from the following matrix configuration?
How many jobs will result from the following matrix configuration? A . 3 jobsB . 4 jobsC . 5 jobsD . 6 jobsView AnswerAnswer: D Explanation: The matrix configuration specifies two variables: color and animal. The color variable has 2 values (green and pink), and the animal variable has 2...
Which is the correct API to download a workflow run log?
You need to make a script to retrieve workflow run logs via the API. Which is the correct API to download a workflow run log?A . POST /repos/:owner/:repo/actions/runs/:run_idB . GET /repos/:owner/:repo/actions/artifacts/logsC . GET /repos/:owner/:repo/actions/runs/:run_id/logsD . POST /repos/:owner/:repo/actions/runs/:run_id/logsView AnswerAnswer: C Explanation: The GET /repos/:owner/:repo/actions/runs/:run_id/logs API endpoint is used to retrieve the...
Which two statements are true?
As a developer, you are optimizing a GitHub workflow that uses and produces many different files. You need to determine when to use caching versus workflow artifacts. Which two statements are true? (Choose two.)A . Use caching when reusing files that change rarely between jobs or workflow runs.B . Use...
What are the two ways to pass data between jobs? (Choose two.)
What are the two ways to pass data between jobs? (Choose two.)A . Use the copy action with restore parameter to restore the data from the cacheB . Use the copy action to save the data that should be passed in the artifacts folder.C . Use the copy action with...
Which of the following commands will set the $FOO environment variable within a script, so that it may be used in subsequent workflow job steps?
Which of the following commands will set the $FOO environment variable within a script, so that it may be used in subsequent workflow job steps?A . run: echo "::set-env name=FOO::bar"B . run: echo "FOO=bar" >> $GITHUB_ENVC . run: echo ${{ $FOO=bar }}D . run: export FOO=barView AnswerAnswer: B Explanation: The...
Which YAML snippet should you use to match the interface in this image?
As a developer, you want to run a workflow from the Actions tab in GitHub. Which YAML snippet should you use to match the interface in this image? A) B) C) D) A . Option AB . Option BC . Option CD . Option DView AnswerAnswer: C Explanation: The first...