Microsoft

GH-200 practice question 8

GitHub Actions · free question 8 of 20

Question

In which locations can actions be referenced by workflows? (Each correct answer presents a complete solution. Choose three.)
  • A. an .action extension file in the repository
  • B. a published Docker container image on Docker Hub Correct
  • C. a public NPM registry
  • D. the runs-on: keyword of a workflow file
  • E. the repository’s Secrets settings page
  • F. a separate public repository Correct
  • G. the same repository as the workflow Correct

Explanation

A workflow can use actions from the same repository as the workflow file, from any public repository (owner/repo@ref), and from a published Docker container image on Docker Hub (docker://image:tag). Actions are not pulled from an NPM registry, there is no .action file type, runs-on selects the runner rather than an action, and the Secrets settings page stores secrets, not actions.

Practice the whole free set

Answer all 20 free GH-200 questions with instant feedback, or unlock all 106 questions with Learn and Exam modes.