diff options
author | Zephyr Shannon <geoffpshannon@gmail.com> | 2020-07-21 15:32:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-21 15:32:54 -0700 |
commit | cbb4abc8aeee1f7304ce6c0d6b160ce99dd2c8cf (patch) | |
tree | 13c0d98742eecd0179e387df1a5df62190346357 /.github/workflows/pr-audit.yml | |
parent | 14723f9786260ad115aae788c9753a44edf0394d (diff) |
chore: add audit check (#2595)
Diffstat (limited to '.github/workflows/pr-audit.yml')
-rw-r--r-- | .github/workflows/pr-audit.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/pr-audit.yml b/.github/workflows/pr-audit.yml new file mode 100644 index 00000000..26c0ee2f --- /dev/null +++ b/.github/workflows/pr-audit.yml @@ -0,0 +1,32 @@ +name: Pull Request Security Audit + +on: + push: + paths: + - '**/Cargo.toml' + pull_request: + paths: + - '**/Cargo.toml' + +jobs: + security-audit: + runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, 'ci skip')" + steps: + - uses: actions/checkout@v2 + + - name: Install cargo-audit + uses: actions-rs/cargo@v1 + with: + command: install + args: cargo-audit + + - name: Generate lockfile + uses: actions-rs/cargo@v1 + with: + command: generate-lockfile + + - name: Audit dependencies + uses: actions-rs/cargo@v1 + with: + command: audit |