Balanced distribution of tasks among shards #2 #96
Workflow file for this run
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
# Triggered via !ci-audit tag | |
name: Check cargo audit | |
on: | |
pull_request: | |
types: [labeled, unlabeled, opened, reopened, synchronize] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test-audit: | |
runs-on: [self-hosted, general] | |
if: ${{ contains(github.event.pull_request.labels.*.name,'!ci-audit') }} | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install cargo audit | |
run: cargo install cargo-audit --locked | |
- name: Run cargo audit | |
run: | | |
$r = (cargo audit -q --json | ConvertFrom-Json) | |
$e = $? | |
$r.vulnerabilities.list | Select-Object -ExpandProperty Advisory | |
if (!$e) { exit 1 } | |
shell: pwsh |