-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
MNT: Use commit SHA of cibuildwheel action release #26025
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
Merged
QuLogic
merged 1 commit into
matplotlib:main
from
matthewfeickert:mnt/harden-security-with-dependabot
Jun 1, 2023
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,31 +136,31 @@ jobs: | |
path: dist/ | ||
|
||
- name: Build wheels for CPython 3.11 | ||
uses: pypa/[email protected] | ||
uses: pypa/cibuildwheel@51f5c7fe68ff24694d5a6ac0eb3ad476ddd062a8 # v2.13.0 | ||
with: | ||
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }} | ||
env: | ||
CIBW_BUILD: "cp311-*" | ||
CIBW_ARCHS: ${{ matrix.cibw_archs }} | ||
|
||
- name: Build wheels for CPython 3.10 | ||
uses: pypa/[email protected] | ||
uses: pypa/cibuildwheel@51f5c7fe68ff24694d5a6ac0eb3ad476ddd062a8 # v2.13.0 | ||
with: | ||
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }} | ||
env: | ||
CIBW_BUILD: "cp310-*" | ||
CIBW_ARCHS: ${{ matrix.cibw_archs }} | ||
|
||
- name: Build wheels for CPython 3.9 | ||
uses: pypa/[email protected] | ||
uses: pypa/cibuildwheel@51f5c7fe68ff24694d5a6ac0eb3ad476ddd062a8 # v2.13.0 | ||
with: | ||
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }} | ||
env: | ||
CIBW_BUILD: "cp39-*" | ||
CIBW_ARCHS: ${{ matrix.cibw_archs }} | ||
|
||
- name: Build wheels for PyPy | ||
uses: pypa/[email protected] | ||
uses: pypa/cibuildwheel@51f5c7fe68ff24694d5a6ac0eb3ad476ddd062a8 # v2.13.0 | ||
with: | ||
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }} | ||
env: | ||
|
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.
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.
@QuLogic I'm not actually sure if this is what you were suggesting in #26023 (comment) or not. Having the commit SHA for the
pypa/cibuildwheel
action adds security around the wheel build, but as your upload is not to a package index but to GitHub's artifact store (so probably less of a security risk here as you have inspection ability post upload) withmatplotlib/.github/workflows/cibuildwheel.yml
Lines 171 to 175 in bfaa6eb
I'm not sure how
matplotlib
finally publishes wheels to PyPI and if that workflow should have additional hardening.cc @ksunden
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.
we download them and upload manually. In the past people have gotten very bent out of shape if the sdist goes up before the wheels so a human ensures they are sequenced right.
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.
😬 Sorry to hear that, but thanks for the explanation.