-
-
Notifications
You must be signed in to change notification settings - Fork 173
Scan content of $CARGO_HOME/bin on restore instead of relying on cargo install metadata
#325
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,34 @@ | ||
| name: binstall | ||
|
|
||
| on: [push, pull_request] | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| binstall: | ||
| if: github.repository == 'Swatinem/rust-cache' | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-latest, macos-latest, windows-latest] | ||
|
|
||
| name: Test `cargo binstall` on ${{ matrix.os }} | ||
| runs-on: ${{ matrix.os }} | ||
|
|
||
| env: | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - run: rustup toolchain install stable --profile minimal --no-self-update | ||
|
|
||
| - uses: cargo-bins/[email protected] | ||
Check failureCode scanning / zizmor unpinned action reference Error
unpinned action reference
|
||
|
|
||
| - uses: ./ | ||
|
|
||
| - run: cargo binstall -y cargo-deny | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
Comment on lines
+33
to
+34
Owner
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. why does this need the github token? I couldn’t find any docs that mention this, and I would prefer to rather remove this.
Contributor
Author
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. It's not strictly required, but if This is documented in Before I added this, I often hit rate limits in my CI workflows. It's possible that yours wouldn't be that affected, however.
Owner
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. Thanks for the explanation. This looks good to me. |
||
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.
In case this helps, that tag is linked to an immutable release and it therefore cannot be modified. That is why I pinned it there; otherwise I would've pinned to a commit hash.