mirror of
https://github.com/storytold/egui.git
synced 2026-11-22 18:41:52 +01:00
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.
30 lines
592 B
YAML
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
|