-
Notifications
You must be signed in to change notification settings - Fork 0
Add cargo-machete workflow #538
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| name: Cargo Machete | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
| schedule: | ||
| - cron: "0 3 * * 1" | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| detect-unused-dependencies: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Checkout action version inconsistent with rest of repoLow Severity This workflow uses Reviewed by Cursor Bugbot for commit a87c272. Configure here. |
||
|
|
||
| - uses: taiki-e/install-action@v2 | ||
| with: | ||
| tool: cargo-machete | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Install action uses mutable tag instead of pinned hashMedium Severity This workflow references Reviewed by Cursor Bugbot for commit a87c272. Configure here. |
||
|
|
||
| - name: Run cargo machete | ||
| run: cargo machete . | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Redundant unused-dependency check duplicates existing cargo-shear jobMedium Severity This workflow adds Reviewed by Cursor Bugbot for commit a87c272. Configure here. |
||


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.
Push trigger lacks branch filter causing duplicate runs
Medium Severity
The
pushtrigger has no branch filter, so the workflow fires on every push to every branch. Combined with the unfilteredpull_requesttrigger, every PR push produces two duplicate runs. Every other workflow in this repo (cargo-deny.yml,rust-ci.yml,ci.yml,codespell.yml) scopespushtobranches: [main]. This inconsistency wastes CI minutes on every single push.Reviewed by Cursor Bugbot for commit a87c272. Configure here.