-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Hash-pin GitHub Actions #4026
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
Hash-pin GitHub Actions #4026
Conversation
Signed-off-by: Pedro Kaj Kjellerup Nacht <[email protected]>
Signed-off-by: Pedro Kaj Kjellerup Nacht <[email protected]>
Signed-off-by: Pedro Kaj Kjellerup Nacht <[email protected]>
Thank you very much for the contribution Pedro. I will leave this one for @jaraco to judge. Although, I have to say even with dependabot, this sounds very inconvenient 😅. Maybe a better approach would be for the next link of the dependency chain to pin setuptools instead... |
Hey @abravalheri, thanks for the quick reply! So, this is just about hardening your CI/CD. Since your workflows already run with minimal permissions (the
I can't quite understand what But yes, this does add some overhead. setuptools currently has the following Actions:
So this would likely average to something like 1 dependabot PR every 1-2 weeks. |
Not abandoned but feature-complete. |
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weekly is going to be quite noisy
@@ -73,14 +73,14 @@ jobs: | |||
SETUPTOOLS_USE_DISTUTILS: ${{ matrix.distutils || 'local' }} | |||
timeout-minutes: 75 | |||
steps: | |||
- uses: actions/checkout@v3 | |||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure this is not going to be compatible with the current mass-maintenance workflow because it will be actively introducing merge conflicts all the time: #4025 (comment).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As proposed, this change is untenable, as it happens per-repo and increases the per-repo maintenance burden substantially. As webknjaz has described, this project is maintained alongside the hundreds of other projects I maintain, many of which are derived from jaraco/skeleton. Before we embark on recommending the change there, I'd like to take a step back and understand better what's being proposed (why it's beneficial).
Summary of changes
Closes #4025.
This PR hash-pins all GitHub Actions used in workflows to protect the project from supply-chain attacks. It also configures dependabot to keep the Actions up-to-date.
Pull Request Checklist
newsfragments/
.(See documentation for details)