Set github actions to use commit hashes #8852
Merged
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.
In light of a recent vulnerability introduced in a community Github Action (none of the ones we are using), we are switching our Github Actions to use commit hashes instead of version numbers. I am leaving the official Github Actions alone (
actions/
) as they are officially provided by Github and if they are compromised, Github might as well be compromised.I left comments saying which version each corresponds to. In each case I picked a commit hash representing the same version as was previously referenced, except for
hashicorp/setup-terraform
which was a version behind and I thought would be safe to bump to the latest. So some may be well behind the latest version, such as google-github-actions/auth, which is 2 versions behind, as I didn't think this was the time to experiment with a version bump.I didn't add these to renovate.json ignoreDeps because maybe we should be reminded to manually update these (after giving some time to check for vulnerabilities).
Also deleted