nerdexam
Microsoft

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

Consume Workflows

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)
  • A
    6% (4)
  • B
    73% (47)
  • D
    3% (2)
  • E
    2% (1)
  • G
    16% (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

#GitHub Actions#Action Referencing#Workflow Syntax#Action Sources

Community Discussion

No community discussion yet for this question.

Full GH-200 Practice