CI: add cargo audit job (#1314)
Co-authored-by: Darin Morrison <darinmorrison@users.noreply.github.com>
This commit is contained in:
15
.github/workflows/main.yml
vendored
15
.github/workflows/main.yml
vendored
@@ -593,3 +593,18 @@ jobs:
|
|||||||
files: "dist/*"
|
files: "dist/*"
|
||||||
name: ${{ steps.tagname.outputs.val }}
|
name: ${{ steps.tagname.outputs.val }}
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
cargo-audit:
|
||||||
|
env:
|
||||||
|
CARGO_AUDIT_VERSION: 0.11.2
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ${{ runner.tool_cache }}/cargo-audit
|
||||||
|
key: cargo-audit-bin-${{ env.CARGO_AUDIT_VERSION }}
|
||||||
|
- run: echo "::add-path::${{ runner.tool_cache }}/cargo-audit/bin"
|
||||||
|
- run: |
|
||||||
|
cargo install --root ${{ runner.tool_cache }}/cargo-audit --version ${{ env.CARGO_AUDIT_VERSION }} cargo-audit
|
||||||
|
cargo audit
|
||||||
|
|||||||
Reference in New Issue
Block a user