2023-03-29 15:33:22 -04:00
|
|
|
name: Security audit
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- '**/Cargo.toml'
|
|
|
|
- '**/Cargo.lock'
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
env:
|
|
|
|
RUST_BACKTRACE: 1
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
CLICOLOR: 1
|
|
|
|
|
2024-01-18 10:22:25 -05:00
|
|
|
concurrency:
|
|
|
|
group: "${{ github.workflow }}-${{ github.ref }}"
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-03-29 15:33:22 -04:00
|
|
|
jobs:
|
|
|
|
security_audit:
|
|
|
|
permissions:
|
|
|
|
issues: write # to create issues (actions-rs/audit-check)
|
|
|
|
checks: write # to create check (actions-rs/audit-check)
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
# Prevent sudden announcement of a new advisory from failing ci:
|
|
|
|
continue-on-error: true
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2023-09-30 21:37:07 -04:00
|
|
|
uses: actions/checkout@v4
|
2023-03-29 15:33:22 -04:00
|
|
|
- uses: actions-rs/audit-check@v1
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
cargo_deny:
|
|
|
|
permissions:
|
|
|
|
issues: write # to create issues (actions-rs/audit-check)
|
|
|
|
checks: write # to create check (actions-rs/audit-check)
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
checks:
|
|
|
|
- bans licenses sources
|
|
|
|
steps:
|
2023-09-30 21:37:07 -04:00
|
|
|
- uses: actions/checkout@v4
|
2024-08-31 21:02:47 -04:00
|
|
|
- uses: EmbarkStudios/cargo-deny-action@v2
|
2023-03-29 15:33:22 -04:00
|
|
|
with:
|
|
|
|
command: check ${{ matrix.checks }}
|
|
|
|
rust-version: stable
|