Skip to content

Commit

Permalink
Optimised cargo-deny actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamschi committed Nov 22, 2024
1 parent 87ff50d commit 07e88ec
Showing 1 changed file with 12 additions and 40 deletions.
52 changes: 12 additions & 40 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,64 +27,36 @@ env:

jobs:
check-advisories:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/[email protected]
- uses: EmbarkStudios/cargo-deny-action@v1
with:
crate: cargo-deny
use-tool-cache: true
- name: Check for security advisories and unmaintained crates
run: cargo deny check advisories
command: check advisories

check-bans:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/[email protected]
- uses: EmbarkStudios/cargo-deny-action@v1
with:
crate: cargo-deny
use-tool-cache: true
- name: Check for banned and duplicated dependencies
run: cargo deny check bans
command: check bans

check-licenses:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/[email protected]
- uses: EmbarkStudios/cargo-deny-action@v1
with:
crate: cargo-deny
use-tool-cache: true
- name: Check for unauthorized licenses
run: cargo deny check licenses
command: check licenses

check-sources:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/[email protected]
- uses: EmbarkStudios/cargo-deny-action@v1
with:
crate: cargo-deny
use-tool-cache: true
- name: Checked for unauthorized crate sources
run: cargo deny check sources
command: check sources

minimal-versions:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 07e88ec

Please sign in to comment.