fork/cargo

git clone https://git.julia.blue/fork/cargo

borsAuto merge of #14628 - weihanglo:cargo-deny, r=epagebd31b4a80

0.88.0
624 B30 linesraw
1name: Security audit
2
3permissions:
4  contents: read
5
6on:
7  pull_request:
8    paths:
9      - '**/Cargo.toml'
10      - '**/Cargo.lock'
11  push:
12    branches:
13    - master
14
15jobs:
16  cargo_deny:
17    runs-on: ubuntu-latest
18    strategy:
19      matrix:
20        checks:
21          - advisories
22          - bans licenses sources
23    steps:
24    - uses: actions/checkout@v4
25    - uses: EmbarkStudios/cargo-deny-action@v2
26      # Prevent sudden announcement of a new advisory from failing ci:
27      continue-on-error: ${{ matrix.checks == 'advisories' }}
28      with:
29        command: check ${{ matrix.checks }}
30        rust-version: stable