2021-10-18 01:54:06 +00:00
|
|
|
# A routine check to see if there are any Rust-specific security vulnerabilities in the repo we should be aware of.
|
|
|
|
|
2020-11-26 08:28:56 +00:00
|
|
|
name: audit
|
2020-11-01 00:40:50 +00:00
|
|
|
on:
|
2021-10-18 01:32:08 +00:00
|
|
|
workflow_dispatch:
|
2020-11-01 00:40:50 +00:00
|
|
|
schedule:
|
2021-08-30 21:07:48 +00:00
|
|
|
- cron: "0 0 * * 1"
|
2020-11-01 00:40:50 +00:00
|
|
|
jobs:
|
|
|
|
audit:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-06-02 22:04:51 +00:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
2022-02-28 00:52:09 +00:00
|
|
|
|
2022-06-02 22:04:51 +00:00
|
|
|
- name: Set up Rust toolchain
|
2022-10-20 10:24:04 +00:00
|
|
|
uses: dtolnay/rust-toolchain@ba37adf8f94a7d9affce79bd3baff1b9e3189c33 # https://github.com/dtolnay/rust-toolchain/commit/ba37adf8f94a7d9affce79bd3baff1b9e3189c33
|
2020-11-01 00:40:50 +00:00
|
|
|
with:
|
2022-02-28 00:52:09 +00:00
|
|
|
toolchain: stable
|
|
|
|
|
|
|
|
- name: Install cargo-audit
|
|
|
|
run: |
|
|
|
|
cargo install cargo-audit --locked
|
|
|
|
|
2022-10-20 10:24:04 +00:00
|
|
|
- uses: rustsec/audit-check@bb800784d9c5b0afa352b75dae201bf2e438960a # https://github.com/rustsec/audit-check/commit/bb800784d9c5b0afa352b75dae201bf2e438960a
|
2020-11-01 00:40:50 +00:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|