2021-10-18 03:54:06 +02: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 09:28:56 +01:00
|
|
|
name: audit
|
2020-11-01 01:40:50 +01:00
|
|
|
on:
|
2021-10-18 03:32:08 +02:00
|
|
|
workflow_dispatch:
|
2020-11-01 01:40:50 +01:00
|
|
|
schedule:
|
2021-08-30 23:07:48 +02:00
|
|
|
- cron: "0 0 * * 1"
|
2020-11-01 01:40:50 +01:00
|
|
|
jobs:
|
|
|
|
audit:
|
2023-02-21 10:09:19 +01:00
|
|
|
timeout-minutes: 18
|
2020-11-01 01:40:50 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-06-03 00:04:51 +02:00
|
|
|
- name: Checkout repository
|
2023-05-11 06:42:39 +02:00
|
|
|
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
2022-02-28 01:52:09 +01:00
|
|
|
|
2022-06-03 00:04:51 +02:00
|
|
|
- name: Set up Rust toolchain
|
2023-05-11 06:42:39 +02:00
|
|
|
uses: dtolnay/rust-toolchain@b44cb146d03e8d870c57ab64b80f04586349ca5d
|
2020-11-01 01:40:50 +01:00
|
|
|
with:
|
2022-02-28 01:52:09 +01:00
|
|
|
toolchain: stable
|
|
|
|
|
2023-05-27 06:59:16 +02:00
|
|
|
- name: Enable Rust cache
|
|
|
|
uses: Swatinem/rust-cache@988c164c3d0e93c4dbab36aaf5bbeb77425b2894 # 2.4.0
|
|
|
|
with:
|
|
|
|
cache-targets: false
|
|
|
|
cache-all-crates: true
|
|
|
|
cache-on-failure: true
|
|
|
|
|
2022-02-28 01:52:09 +01:00
|
|
|
- name: Install cargo-audit
|
|
|
|
run: |
|
|
|
|
cargo install cargo-audit --locked
|
2023-05-27 06:59:16 +02:00
|
|
|
rm -rf ~/.cargo/registry || echo "no registry to delete"
|
2022-02-28 01:52:09 +01:00
|
|
|
|
2023-05-11 06:42:39 +02:00
|
|
|
- uses: rustsec/audit-check@dd51754d4e59da7395a4cd9b593f0ff2d61a9b95 # v1.4.1
|
2020-11-01 01:40:50 +01:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|