mirror of
https://github.com/crate-ci/typos.git
synced 2026-10-17 17:45:10 +02:00
62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
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
|
|
|
|
concurrency:
|
|
group: "${{ github.workflow }}-${{ github.ref }}"
|
|
cancel-in-progress: true
|
|
|
|
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
|
|
strategy:
|
|
matrix:
|
|
checks:
|
|
- advisories
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
persist-credentials: false
|
|
- uses: EmbarkStudios/cargo-deny-action@3fd3802e88374d3fe9159b834c7714ec57d6c979 # v2
|
|
with:
|
|
command: check ${{ matrix.checks }}
|
|
rust-version: stable
|
|
|
|
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
persist-credentials: false
|
|
- uses: EmbarkStudios/cargo-deny-action@3fd3802e88374d3fe9159b834c7714ec57d6c979 # v2
|
|
with:
|
|
command: check ${{ matrix.checks }}
|
|
rust-version: stable
|