AZ-400 · Question #408
You have a GitHub repository that contains workflows. The workflows contain steps that execute predefined actions. Each action has one or more versions. You need to request the specific version of an
The correct answer is A. the SHA-based hashes B. the tag D. the branch. We strongly recommend that you include the version of the action you are using by specifying a Git ref, SHA, or Docker tag. If you don't specify a version, it could break your workflows or cause unexpected behavior when the action owner publishes an update. Using the commit SHA o
Question
Options
- Athe SHA-based hashes
- Bthe tag
- Cthe runner
- Dthe branch
- Ethe serial
How the community answered
(30 responses)- A70% (21)
- C20% (6)
- E10% (3)
Explanation
We strongly recommend that you include the version of the action you are using by specifying a Git ref, SHA, or Docker tag. If you don't specify a version, it could break your workflows or cause unexpected behavior when the action owner publishes an update. Using the commit SHA of a released action version is the safest for stability and security. If the action publishes major version tags, you should expect to receive critical fixes and security patches while still retaining compatibility. Note that this behavior is at the discretion of the action's Using the default branch of an action may be convenient, but if someone releases a new major version with a breaking change, your workflow could break. https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
Topics
Community Discussion
No community discussion yet for this question.