chore: add audit to SDK CI
@@ -50,3 +50,22 @@ jobs:
- uses: Swatinem/rust-cache@v1
- run: cargo check -p near-sdk --features unstable
- run: cargo check -p near-contract-standards
+ audit:
+ name: Audit
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout Sources
+ uses: actions/checkout@v2
+ - name: Install Toolchain
+ uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: stable
+ - uses: Swatinem/rust-cache@v1
+ - name: Install Audit
+ run: cargo install cargo-audit
+ - name: Run Audit
+ uses: actions-rs/cargo@v1
+ with:
+ command: audit
+ args: --ignore RUSTSEC-2020-0071
