-
Notifications
You must be signed in to change notification settings - Fork 61
38 lines (35 loc) · 1023 Bytes
/
deny.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Cargo Deny
on:
workflow_dispatch:
schedule:
- cron: '30 10 * * 1' # Every Monday at 10:30 AM UTC
pull_request:
paths:
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/deny.yml'
- 'deny.toml'
merge_group:
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
deny:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
VERSION: 0.16.3
CMD: "cargo-deny"
DIR: "/tmp/cargo-deny"
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Install Deny
run: |
mkdir -p $DIR
curl -L -o $DIR/archive.tar.gz https://github.com/EmbarkStudios/$CMD/releases/download/$VERSION/$CMD-$VERSION-x86_64-unknown-linux-musl.tar.gz
tar -xzvf $DIR/archive.tar.gz --strip-components=1 -C $DIR
- name: Deny
run: $DIR/$CMD -L debug check bans licenses advisories --show-stats