git-fetch-with-cli: Set GIT_DIR
for bare repository compatibility (…
#2925
This file contains 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: Security audit | |
permissions: | |
contents: read | |
on: | |
pull_request: | |
paths: | |
- '**/Cargo.toml' | |
- '**/Cargo.lock' | |
push: | |
branches: | |
- master | |
jobs: | |
cargo_deny: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
checks: | |
- advisories | |
- bans licenses sources | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: EmbarkStudios/cargo-deny-action@v2 | |
# Prevent sudden announcement of a new advisory from failing ci: | |
continue-on-error: ${{ matrix.checks == 'advisories' }} | |
with: | |
command: check ${{ matrix.checks }} | |
rust-version: stable |