chore: update GitHub Actions to latest versions#52
Merged
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Claude <noreply@anthropic.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR updates the versions of GitHub Actions used in the lint, test, and publish workflows to their latest major/minor releases while keeping the overall workflow structure and behavior the same. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #52 +/- ##
=======================================
Coverage 84.57% 84.57%
=======================================
Files 58 58
Lines 4783 4783
Branches 496 496
=======================================
Hits 4045 4045
Misses 496 496
Partials 242 242
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path=".github/workflows/lint.yml" line_range="13-14" />
<code_context>
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
+ - uses: actions/checkout@v7
+ - uses: actions/setup-python@v6
with:
python-version: "3.12"
</code_context>
<issue_to_address>
**🚨 suggestion (security):** Consider pinning Actions to a specific commit SHA for stronger supply-chain security.
Using floating tags (e.g., `@v7`, `@v6`) means upstream changes can silently alter your CI behavior over time, impacting reproducibility and supply-chain security. Pinning each Action to a specific commit SHA (and optionally noting the human-readable version in a comment) keeps builds deterministic and easier to audit.
Suggested implementation:
```
steps:
- uses: actions/checkout@<COMMIT_SHA_CHECKOUT> # actions/checkout@v7
- uses: actions/setup-python@<COMMIT_SHA_SETUP_PYTHON> # actions/setup-python@v6
with:
python-version: "3.12"
```
```
steps:
- uses: actions/checkout@<COMMIT_SHA_CHECKOUT> # actions/checkout@v7
- name: Install and run Ruff
uses: astral-sh/ruff-action@<COMMIT_SHA_RUFF_ACTION> # astral-sh/ruff-action@v4.1.0
with:
```
Replace `<COMMIT_SHA_CHECKOUT>`, `<COMMIT_SHA_SETUP_PYTHON>`, and `<COMMIT_SHA_RUFF_ACTION>` with the exact commit SHAs corresponding to the versions you intend to use (e.g., the commits pointed to by the `v7`, `v6`, and `v4.1.0` tags at the time you pin them).
If there are other jobs in this workflow (or other workflows) using GitHub Actions with floating tags, apply the same pattern there to keep your CI fully reproducible.
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
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.
Summary by Sourcery
Update GitHub workflow actions to their latest stable versions for linting, testing, and publishing pipelines.
CI: