Skip to content

Commit

Permalink
Add example showing how to use prebuilt binary
Browse files Browse the repository at this point in the history
  • Loading branch information
PythonGermany authored Feb 22, 2025
1 parent 69366f3 commit 2580b14
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,32 @@ Note that informational advisories are not affecting the check status.

![Check screenshot](.github/check_screenshot.png)

### Use prebuilt binary

To furter speed up the CI pipeline the action [taiki-e/install-action](https://github.com/marketplace/actions/install-development-tools) can be used. This will save time by using a prebuilt binary from cargo-audit's [release](https://github.com/rustsec/rustsec/releases) page instead of installing it from source each time this action is triggered.

```yaml
name: Security audit
on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
security_audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@v2
with:
tool: cargo-audit
fallback: none
- uses: rustsec/audit-check@v1.4.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
```


#### Granular Permissions

These are the typically used permissions:
Expand Down

0 comments on commit 2580b14

Please sign in to comment.