Conversation
mrobers1982
approved these changes
Mar 26, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This PR improves the security posture of our GitHub Actions setup and removes dead CI code.
Least-privilege GITHUB_TOKEN
Set an explicit workflow-level default of permissions: contents: read on python-package-prod.yml so the token used for that workflow cannot modify repository contents by default. Jobs still run tests using existing secrets; this limits blast radius if a step or dependency misbehaves.
Supply-chain pinning
Pin eifinger/setup-rye to a full commit SHA in so composite jobs use the same immutable reference as other workflows instead of a mutable @v2 tag.
Align actions/checkout in python-package-develop.yml with the pinned v4 SHA used elsewhere, replacing the old checkout@v2 reference.
Remove unused / broken CI
Delete the Labelbox Example Notebook workflow - confirmed obsolete;
reduces maintenance and attack surface.
Remove .github/actions/provenance/action.yml: it referenced a reusable workflow from a composite action in an invalid way and was unused; provenance remains handled in the main publish workflows.
Type of change
Please delete options that are not relevant.
All Submissions
New Feature Submissions
Changes to Core Features
Note
Medium Risk
Moderate risk because it removes the
notebooks.ymlautomation and a composite provenance action, which could change CI behavior if they were still relied on. The remaining changes are low-risk security hardening (pinning actions and tightening permissions).Overview
Security hardening for GitHub Actions. Pins
eifinger/setup-rye(shared Python setup) and updatesactions/checkoutusage in the develop workflow to a commit SHA instead of a floating version.CI cleanup / least-privilege tweaks. Removes the
Labelbox Example Notebook Workflow(.github/workflows/notebooks.yml) and deletes the old composite provenance action (.github/actions/provenance/action.yml), and adds explicitpermissions: contents: readtopython-package-prod.yml.Written by Cursor Bugbot for commit 84fec37. This will update automatically on new commits. Configure here.