mirror of
https://github.com/storytold/egui.git
synced 2026-11-20 17:42:29 +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.
27 lines
974 B
YAML
27 lines
974 B
YAML
name: Link checker
|
|
# on: [pull_request] # Disabled because it is so broken
|
|
on: workflow_dispatch
|
|
|
|
jobs:
|
|
lychee:
|
|
name: lychee
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: Harden runner
|
|
uses: step-security/harden-runner@v2.22.4
|
|
with:
|
|
egress-policy: audit
|
|
- uses: actions/checkout@v4.4.0
|
|
- name: Don't check CHANGELOG.md files
|
|
# This is really stupid but lychee doesn't have a way of excluding files via GLOB:
|
|
# https://github.com/lycheeverse/lychee/issues/1608
|
|
|
|
# We need to exclude CHANGELOG.md since we don't want to have a CI failure everytime some contributor decides
|
|
# to change their username.
|
|
run: rm -r */**/CHANGELOG.md CHANGELOG.md
|
|
- name: Link Checker
|
|
uses: lycheeverse/lychee-action@v2.9.0
|
|
with:
|
|
args: "'**/*.md' '**/*.toml' --exclude localhost --exclude reddit.com" # I guess reddit doesn't like github action IPs
|