GH-200 · Question #51
In which locations can actions be referenced by workflows? (Each correct answer presents a complete solution. Choose three.)
The correct answer is B. a published Docker container image on Docker Hub C. a public NPM registry F. a separate public repository. Adding an action to your workflow You can add an action to your workflow by referencing the action in your workflow file. The actions you use in your workflow can be defined in: [F] The same repository as your workflow file [C] Any public repository [B] A published Docker contain
Question
In which locations can actions be referenced by workflows? (Each correct answer presents a complete solution. Choose three.)
Options
- Aan .action extension file in the repository
- Ba published Docker container image on Docker Hub
- Ca public NPM registry
- Dthe runs-on: keyword of a workflow file
- Ethe repository's Secrets settings page
- Fa separate public repository
- Gthe same repository as the workflow
How the community answered
(64 responses)- A6% (4)
- B73% (47)
- D3% (2)
- E2% (1)
- G16% (10)
Explanation
Adding an action to your workflow You can add an action to your workflow by referencing the action in your workflow file. The actions you use in your workflow can be defined in: [F] The same repository as your workflow file [C] Any public repository [B] A published Docker container image on Docker Hub Note: Adding an action from the same repository [F] If an action is defined in the same repository where your workflow file uses the action, you can https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/find-and- customize-actions
Topics
Community Discussion
No community discussion yet for this question.