Files
Dylan M. Taylor ca6100634b ci: use StepSecurity's maintained actions (#183)
Each third-party action that StepSecurity publishes a secure drop-in
replacement for now uses that replacement, pinned to a commit with its
version as a comment. Versions follow what we used: the newest
StepSecurity release in the same major, or the closest major they
publish. dtolnay/rust-toolchain refs that named a toolchain (stable,
nightly, 1.76) become the replacement's `toolchain` input.
2026-11-11 14:57:14 -05:00

53 lines
1.6 KiB
YAML

name: Deliberate-bug checks
# Run by hand from the Actions tab. Each case breaks one safety rule on purpose and checks that a
# test notices (see tools/mutation/README.md). It is slow, so it does not run on every push.
on:
workflow_dispatch:
inputs:
group:
description: Case group to run, for example u3 or u4
required: true
default: u3
filter:
description: Only run cases whose name contains this text (optional)
required: false
default: ""
env:
CARGO_TERM_COLOR: always
permissions:
contents: read
jobs:
mutation:
name: ${{ inputs.group }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Harden runner
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
with:
egress-policy: audit
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: step-security/dtolnay-rust-toolchain@8dd607977d06adf4ed49b190381e74c17a9dd25f # v1.0.0
with:
toolchain: stable
- uses: step-security/rust-cache@8871c8ba063416da7c32246932ea6ae08700453e # v2.9.2
- name: Run ${{ inputs.group }} deliberate-bug checks
env:
GROUP: ${{ inputs.group }}
FILTER: ${{ inputs.filter }}
run: |
set -eu
if [ -n "$FILTER" ]; then
python3 tools/mutation/mutation_check.py "$GROUP" "$FILTER"
else
python3 tools/mutation/mutation_check.py "$GROUP"
fi