-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: pin "actions/" GitHub Actions to SHAs #87309
ci: pin "actions/" GitHub Actions to SHAs #87309
Conversation
5a2272d
to
f3fd765
Compare
This commit follows up on e808ccfxy and completes the pinning of *all* GitHub Actions to SHAs, including GitHub-owned `actions/*` actions. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Apply dependabot suggested updates to the `scorecard` workflow to pull latest versions of the actions. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
f3fd765
to
f5e2486
Compare
Ok but what is the whole story? Like you pinned the hashes, now what? Do you expect us to audit the changes commit by commit when upgrading them? If we are just bumping them up to check that they are in the repo then this is pointless waste of time. |
We let dependabot check for updates, it will post a changelog alongside the changes. Still needs a minimal amount of effort though. The issue with not using hashes is that tags are mutable, which happened for example with tj-actions/changed-files where all tags were set to a malicious version. |
So the idea is that before approving such a change one is expected to through every commit, check the actual diff and look for signs of obfuscated exploits? |
each sha would corrospond to a tag, so instead of using tags which can be exploited by making them point to a different sha, we take the sha directly. When approving/reviewing, it is going to be the same I guess, i.e. if you have checked the diff between tags before, you can do that, but I have never looked at diff between two tags when updating actions. All of this as it was said already would be managed and proposed by depandabot, so less manual work hopefully. |
This commit follows up on e808ccf and completes the pinning of all
GitHub Actions to SHAs, including GitHub-owned
actions/*
actions.Also update scorecard.yml versions in the process.