GH-900 · Question #32
Workflows can reference actions in: (Choose three.)
The correct answer is A. Any public repository. B. The same repository as your workflow file. E. A published Docker container image on Docker Hub. GitHub Actions workflows can reference actions from three sources: (A) Any public repository - using the syntax owner/repo@ref to call actions published in public GitHub repos; (B) The same repository as your workflow file - using a relative path like ./path/to/action; and (E)…
Question
Workflows can reference actions in: (Choose three.)
Options
- AAny public repository.
- BThe same repository as your workflow file.
- CGitHub Packages.
- DAn enterprise marketplace.
- EA published Docker container image on Docker Hub.
How the community answered
(62 responses)- A85% (53)
- C5% (3)
- D10% (6)
Explanation
GitHub Actions workflows can reference actions from three sources: (A) Any public repository - using the syntax owner/repo@ref to call actions published in public GitHub repos; (B) The same repository as your workflow file - using a relative path like ./path/to/action; and (E) A published Docker container image on Docker Hub - using docker://image:tag syntax. GitHub Packages (C) is a package registry, not where actions are hosted or referenced from. An 'enterprise marketplace' (D) is not a real GitHub Actions reference source - the GitHub Marketplace exists, but it resolves to public repos, which is already covered by option A.
Topics
Community Discussion
No community discussion yet for this question.