Skip to content
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

temporary ignore RUSTSEC-2020-0041 for cargo-audit #195

Merged
merged 1 commit into from
Oct 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 35 additions & 9 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,45 @@ on:
pull_request:
push:
branches:
- master
- release-*
- master
- release-*

jobs:
rust:
audit:
name: Audit
runs-on: ubuntu-latest
defaults:
run:
shell: bash

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2

- name: cargo-audit
uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal

- name: fix permissions
if: matrix.os == 'ubuntu-latest'
run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/

- name: cached cargo audit version
continue-on-error: true
run: cargo-audit -h | sed -n 1p

- name: install cargo audit
continue-on-error: true
run: cargo install cargo-audit

- name: run cargo audit
run: cargo audit --ignore RUSTSEC-2020-0041

# temporary disabled because
# https://github.com/bodil/sized-chunks/issues/11
# - name: cargo-audit
# uses: actions-rs/audit-check@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}