cargo-audit: add binary scan size limits #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Workspace | |
| permissions: {} | |
| on: | |
| pull_request: {} | |
| push: | |
| branches: main | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 | |
| with: | |
| toolchain: stable | |
| override: true | |
| profile: minimal | |
| - uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3 | |
| with: | |
| command: check | |
| clippy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 | |
| with: | |
| toolchain: stable | |
| components: clippy | |
| override: true | |
| profile: minimal | |
| - uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3 | |
| with: | |
| command: clippy | |
| args: --workspace --all-features --exclude=rustsec -- -D warnings | |
| - uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3 | |
| with: | |
| command: clippy | |
| args: --package=rustsec --features=dependency-tree,osv-export,binary-scanning -- -D warnings | |
| rustfmt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 | |
| with: | |
| toolchain: stable | |
| components: rustfmt | |
| override: true | |
| profile: minimal | |
| - uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3 | |
| with: | |
| command: fmt | |
| args: --all -- --check | |
| # rustsec relies on mutually exclusive features in gix so we can't used | |
| # cargo-semver-checks-action by just checking all-features acrooss all crates | |
| semver: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Check semver (cvss) | |
| uses: obi1kenobi/cargo-semver-checks-action@5b298c9520f7096a4683c0bd981a7ac5a7e249ae # v2.8 | |
| with: | |
| package: cvss | |
| - name: Check semver (quitters) | |
| uses: obi1kenobi/cargo-semver-checks-action@5b298c9520f7096a4683c0bd981a7ac5a7e249ae # v2.8 | |
| with: | |
| package: quitters | |
| - name: Check semver (cargo-lock) | |
| uses: obi1kenobi/cargo-semver-checks-action@5b298c9520f7096a4683c0bd981a7ac5a7e249ae # v2.8 | |
| with: | |
| package: cargo-lock | |
| - name: Check semver (rustsec + reqwest) | |
| uses: obi1kenobi/cargo-semver-checks-action@5b298c9520f7096a4683c0bd981a7ac5a7e249ae # v2.8 | |
| with: | |
| package: rustsec | |
| features: binary-scanning, default, dependency-tree, git, gix-reqwest, osv-export | |
| feature-group: only-explicit-features | |
| - name: Check semver (rustsec + curl) | |
| uses: obi1kenobi/cargo-semver-checks-action@5b298c9520f7096a4683c0bd981a7ac5a7e249ae # v2.8 | |
| with: | |
| package: rustsec | |
| features: binary-scanning, dependency-tree, git, gix-curl, osv-export | |
| feature-group: only-explicit-features | |
| - name: Check semver (cargo-audit) | |
| uses: obi1kenobi/cargo-semver-checks-action@5b298c9520f7096a4683c0bd981a7ac5a7e249ae # v2.8 | |
| with: | |
| package: cargo-audit |