mirror of
https://github.com/storytold/egui.git
synced 2026-11-21 10:02:03 +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
611 B
YAML
30 lines
611 B
YAML
# Checks that all TOML files are formatted with taplo.
|
|
name: Taplo
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
|
|
jobs:
|
|
taplo:
|
|
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 Taplo
|
|
uses: step-security/taiki-e-install-action@v2.87.32
|
|
with:
|
|
tool: taplo-cli@0.9.3
|
|
|
|
- name: Check TOML formatting
|
|
run: |
|
|
taplo fmt --check
|