Pin workflow wsl2.yml#12976
Conversation
|
Why is that better than the version? |
|
no that is the same version, v6.1.0 just the commit hash pinned |
|
@sylvestre, if you not trust me see Vampire/setup-wsl@887f39d, it is the same version for the workflow, do'nt worry |
|
We absolutely believe this action and always bump when new version was released. So using commit hash does not improve anything. |
|
but if those actions compromised, what will say? that is the problem of using @v6.1.0 instead of a commit hash because unpinned, @v6.1.0 are mutable, but a commit hash can never change, do'nt worry dependabot will bump the commit hash, if there a good release @oech3, if new action version released dependabot will issue an update and update the commit hash |
|
if those actions compromised, we install it at next update using commit hash. |
|
the risk is the Vampire just a maintener user, not a tech giant or an organization at least, mainteners are a very high target and if just the action compromised attackers will push malware and then will progogate to uutils. |
|
when a workflow compromised it is instantly wil trigger malicious code in uutils, please understand @oech3, if you do'nt understand how supply chain attack works, do'nt try to comment in the pr, view and there tons of issues open and fix them |
|
So do you say that we have deadline to notice new malicious version before merging dependa bot's PR. |
|
GNU testsuite comparison: |
|
yes when using commit hashes, there a immutable until you merge dependabot update which change the commit hash with the new one, but when uisng a tag like v6.1.0 an attacker can point it to a malicious commit and endup malware even you not touch dependabot updates |
|
Personally, wsl/devcontainer CI is not useful since it uses exactly same Ubuntu version with GitHub (no newer glibc). |
Merging this PR will not alter performance
Comparing Footnotes
|
e3e239a to
b62421b
Compare
| - { os: windows-latest, distribution: Ubuntu-24.04, features: feat_os_unix} | ||
| steps: | ||
| - uses: actions/checkout@v7.0.0 | ||
| - uses: actions/checkout@1044a6dea927916f2c38ba5aeffbc0a847b1221a |
There was a problem hiding this comment.
This is not the 7.0.0 SHA
| persist-credentials: false | ||
| - name: Install WSL2 | ||
| uses: Vampire/setup-wsl@v6.1.0 | ||
| uses: Vampire/setup-wsl@887f39deb6c0976365e546926fe66f41b77d65ff # pinned version v6.1.0 with a SHA hash |
There was a problem hiding this comment.
This does appear to be the 6.1.0 SHA, however note version 7 is now available.
There was a problem hiding this comment.
|
ok it was 9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 |
|
Instead of depending on manual PRs I'd suggest the project simply setup dependabot for GitHub actions.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2
updates:
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
groups:
dependencies:
applies-to: version-updates
patterns:
- "*"Workflows can still use SHA and document version which will both be updated by dependabot, ex:
|
|
however the project use renovabot, not dependabot |
|
It can use both, plenty of other projects do. |
|
i still don't see the value of this change, sorry :/ |
|
ok so, sylevestre, is i will close the pr, maybe yes, but, the project need supply chain security hygienes, like if a renovabot pr arrived, we need wait 12 hours at least to prevent the project endup integrating malware because if a rust dev crates.io account compromised, all that possible in that time, and with some crates, will lead to the malicious version, so at least at good, wait, do not fast merge renovabot prs just in minutes and other supply chain security praticses, you choose, so i will close that |
Pinning the workflow wsl2.yml part of the Supply Chain Security Tracking Issue, #12905
note the wsl setup workflow the pinning matches the exact v6.1.0