-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.24 KB
/
Copy pathactionlint.yml
File metadata and controls
42 lines (36 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: actionlint
# Static analysis for GitHub Actions workflows.
# Catches: workflow syntax errors, deprecated triggers, invalid expressions,
# shellcheck issues on `run:` steps, dangerous shell patterns, missing job
# dependencies. Runs only when workflow files actually change.
#
# Single-file install — no Action SHA-pinning needed because we download
# the official actionlint binary via the published install-script and
# checksum-verify it. Updating to a newer actionlint version is a
# one-line script edit, not a Dependabot PR.
on:
pull_request:
paths:
- ".github/workflows/**"
- ".github/actionlint.yaml"
push:
branches: [main]
paths:
- ".github/workflows/**"
- ".github/actionlint.yaml"
permissions:
contents: read
jobs:
actionlint:
name: Lint workflows
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4
- name: Download actionlint
id: get_actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
shell: bash
- name: Run actionlint
run: ${{ steps.get_actionlint.outputs.executable }} -color
shell: bash