GITHUB-ACTIONS practice question 6 of 15
Which choices represent best practices for publishing actions so that they can be consumed reliably? (Choose two.)
Full set: 72 questionsCorrect Answer:
B. tag; C. commit SHA
Explanation
Using a tag is a best practice because tags are immutable and represent a fixed version of your action. By referencing tags, consumers of your action can be assured they are using a stable and specific version of the action, which helps in avoiding issues with breaking changes. The commit SHA is another reliable way to specify a particular version of an action. By referencing a specific commit SHA, consumers can ensure they are using exactly the code that was written at that moment, avoiding the potential for changes in the future.
Keep practicing
Take the free GITHUB-ACTIONS practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GITHUB-ACTIONS practice questions
- Question 1Which statement is true about using default environment variables?
- Question 2Which default GitHub environment variable indicates the owner and repository name?
- Question 3Which workflow event is used to manually trigger a workflow run?
- Question 4Which default GitHub environment variable indicates the name of the person or app that in…
- Question 5You are reaching your organization's storage limit for GitHub artifacts and packages. Wha…
- Question 7In which scenarios could the GITHUB_TOKEN be used? (Choose two.)
