Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/lint_workflows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Lint workflows

on:
push:
branches: ["main"]
paths:
- .github/workflows/**

pull_request:
paths:
- .github/workflows/**

workflow_dispatch:

permissions:
contents: read

concurrency:
group: lint-workflows-${{ github.ref }}
cancel-in-progress: true

jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7

- name: Run actionlint
uses: docker://rhysd/actionlint:1.7.12
env:
# actionlint runs shellcheck over every run: block. Three of its checks are noise here:
# SC2016 fires on the single-quoted jq programs, which must stay literal; SC2129 is pure
# style; SC2155 warns about a masked return value in blocks that run without set -e and
# already fall back with || echo "". Every other shellcheck rule and all actionlint
# checks stay enabled.
SHELLCHECK_OPTS: --exclude=SC2016,SC2129,SC2155
with:
args: -color