Files
egui/.github/workflows/cargo_shear.yml
Dylan M. Taylor 0965b68bdc ci: lock workflow actions through an actions.lock lockfile
Mutable action tags are a supply-chain risk: a moved tag runs different code
without a diff. Every workflow action is now pinned through
.github/workflows/actions.lock, and CI verifies the lockfile so an out-of-sync
or tampered one fails instead of running.
2026-11-12 10:04:46 -05:00

30 lines
592 B
YAML

# Looks for unused crates.
name: Cargo Shear
on:
push:
branches:
- "main"
pull_request:
types: [opened, synchronize]
jobs:
cargo-shear:
runs-on: ubuntu-latest
steps:
- name: Harden runner
uses: step-security/harden-runner@v2.22.4
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@v4.4.0
- name: Install Cargo Shear
uses: step-security/taiki-e-install-action@v2.87.32
with:
tool: cargo-shear@1.11.2
- name: Run Cargo Shear
run: |
cargo shear