typos/.github/workflows/audit.yml

50 lines
1.1 KiB
YAML
Raw Normal View History

2021-07-01 16:45:56 -04:00
name: Security audit
2023-03-29 15:33:22 -04:00
permissions:
contents: read
2021-07-01 16:45:56 -04:00
on:
pull_request:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
push:
2023-03-29 15:33:22 -04:00
branches:
2023-08-14 16:06:53 -04:00
- master
2023-03-29 15:33:22 -04:00
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
CLICOLOR: 1
2021-07-01 16:45:56 -04:00
jobs:
security_audit:
2023-03-29 15:33:22 -04:00
permissions:
issues: write # to create issues (actions-rs/audit-check)
checks: write # to create check (actions-rs/audit-check)
2021-07-01 16:45:56 -04:00
runs-on: ubuntu-latest
2023-03-29 15:33:22 -04:00
# Prevent sudden announcement of a new advisory from failing ci:
continue-on-error: true
2021-07-01 16:45:56 -04:00
steps:
- name: Checkout repository
uses: actions/checkout@v3
2021-07-01 16:45:56 -04:00
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
2023-03-29 15:33:22 -04:00
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:
- uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check ${{ matrix.checks }}
rust-version: stable