Skip to content
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

Update the download/upload artifact actions to version 4. #4647

Closed
wants to merge 1 commit into from

Conversation

teo-tsirpanis
Copy link
Member

Artifacts are now immutable and we can't upload many times to the same one as we do in the Release workflow, but what we can do is upload to many artifacts with a common prefix, and download all of them with a pattern.


TYPE: NO_HISTORY

Copy link
Contributor

@eddelbuettel eddelbuettel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching that. I find this (very common!) practice of a pinned version totally insane as well have to go around every couple of years to increment the value. What the heck is wrong with '@latest', preferably automatically picked?

@teo-tsirpanis
Copy link
Member Author

What the heck is wrong with @latest, preferably automatically picked?

We protect ourselves from arbitrary code execution if the repository with the action gets compromised. The most secure thing we can do is pin on the Git hash, because the v4 tag for these actions for example will move to the latest 4.x action, and we do pin on the hash one action that requires advanced permissions but I'm fine with pinning on the tag actions provided by GitHub. We can use Dependabot to automatically open PRs to update the actions.

And we also protect ourselves from breaking changes, like here where CI fails because the new actions run on a Node.js version with a new libc, while some jobs run on Manylinux with a not so new libc.

@teo-tsirpanis
Copy link
Member Author

Closing, we cannot merge it until we are able to bump the manylinux version used by CI.

@teo-tsirpanis teo-tsirpanis deleted the teo/artifact-actions-update branch January 23, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants