Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes Or Enhances
This PR pins the versions of the various GitHub Actions used throughout this project.
Why pin?
Version pinning is an essential security control to defend against supply chain attacks. Recently, a well-known GitHub Action (tj-actions/changed-files) was compromised to leak secrets. Such an attack would be not be successfull if downstream users had pinned their dependencies. More info can be defined here: https://www.stepsecurity.io/blog/harden-runner-detection-tj-actions-changed-files-action-is-compromised
Additional information about pinning GitHub Actions can be found here: https://www.stepsecurity.io/blog/pinning-github-actions-for-enhanced-security-a-complete-guide
Updates
Dependabot is compatible with pinning GitHub Actions and will submit back PR's with new versions pinned. Additionally it should add a comment to the end of the hash (like I've done in the code) so show exactly what version is being used.
Make sure that you've checked the boxes below before you submit PR:
@go-playground/validator-maintainers
NOTE: This PR includes changes from PR #1372, meaning that one should probably be merged first.