Skip to content

feat: add security audit retention archive operations #12

feat: add security audit retention archive operations

feat: add security audit retention archive operations #12

Workflow file for this run

name: PR Gate
on:
pull_request:
branches:
- main
concurrency:
group: pr-gate-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
security-pr-gate:
name: Security PR Gate
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo and target
uses: Swatinem/rust-cache@v2
- name: Ensure cargo-audit is installed (pinned)
run: |
set -euo pipefail
required_version="0.21.0"
current_version="$(cargo audit -V 2>/dev/null | awk '{print $2}' || true)"
if [[ "${current_version}" != "${required_version}" ]]; then
cargo install cargo-audit@${required_version} --locked --force
fi
- name: Run security PR gate
run: scripts/security_pr_gate.sh