GH-200 Practice Test practice questions, page 5 of 5, with answer review and explanations.
Question 21
You need to trigger a workflow using the GitHub API for activity that happens outside of GitHub. Which workflow event do you use?
workflow_run
deployment
check_suite
repository_dispatch
Question 22
In which locations can actions be referenced by workflows? (Each correct answer presents a complete solution. Choose three.)
an .action extension file in the repository
a published Docker container image on Docker Hub
a public NPM registry
the runs-on: keyword of a workflow file
the repository’s Secrets settings page
a separate public repository
the same repository as the workflow
Question 23
Scheduled workflows run on the:
specified commit and branch from the workflow YAML file.
latest commit from the branch named schedule.
latest commit and branch on which the workflow was triggered.
latest commit from the branch named main.
latest commit on the default or base branch.
Question 24
Custom environment variables can be defined at multiple levels within a workflow file including: (Each answer presents a complete solution. Choose three.)