/ .github / workflows / workflows_linting.yml
workflows_linting.yml
 1  name: Github workflows linter
 2  
 3  on:
 4    pull_request:
 5      paths:
 6        - ".github/workflows/**"
 7  
 8  jobs:
 9    lint-workflows:
10      runs-on: ubuntu-slim
11      steps:
12        - name: Checkout
13          uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
14  
15        - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
16          with:
17            go-version: ">=1.24.0"
18  
19        - name: Install actionlint
20          run: go install github.com/rhysd/actionlint/cmd/actionlint@latest
21  
22        - name: Run actionlint
23          env:
24            SHELLCHECK_OPTS: --exclude=SC2102
25          run: actionlint