-
Notifications
You must be signed in to change notification settings - Fork 275
35 lines (30 loc) · 1.09 KB
/
actionlint.yml
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
name: GitHub Action Lint
on:
pull_request:
paths:
- ".github/**/*"
permissions:
contents: read
env:
ACTIONLINT_VERSION: "1.6.17"
ACTIONLINT_SHA256: "a4641cd9b81e06070936fa017feb1f4f69cec0ceed41f00072e94910beb6bdd7"
jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Download actionlint
run: |
curl -s -L -o actionlint.tar.gz "https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VERSION}/actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz"
if ! sha256sum actionlint.tar.gz | grep "${ACTIONLINT_SHA256}"; then
echo "Checksum verification failed. Please make sure that nobody tampered with the releases of github.com/rhysd/actionlint"
echo "Actual checksum: "
sha256sum actionlint.tar.gz
exit 1
fi
tar -ztvf actionlint.tar.gz
tar xvzf actionlint.tar.gz actionlint
shell: bash
- name: Check workflow files
run: ./actionlint -color
shell: bash