| 1 | # SPDX-FileCopyrightText: 2023 Kevin Matthes |
| 2 | # SPDX-FileCopyrightText: 2023 Shun Sakai |
| 3 | # |
| 4 | # SPDX-License-Identifier: Apache-2.0 OR MIT |
| 5 | |
| 6 | name: actionlint |
| 7 | |
| 8 | on: |
| 9 | pull_request: |
| 10 | paths: |
| 11 | - .github/workflows/*.yaml |
| 12 | push: |
| 13 | paths: |
| 14 | - .github/workflows/*.yaml |
| 15 | workflow_dispatch: |
| 16 | |
| 17 | permissions: |
| 18 | contents: read |
| 19 | |
| 20 | jobs: |
| 21 | validation: |
| 22 | name: Validate |
| 23 | runs-on: ubuntu-24.04 |
| 24 | steps: |
| 25 | - name: Checkout code |
| 26 | uses: actions/checkout@v6 |
| 27 | with: |
| 28 | persist-credentials: false |
| 29 | - name: Run linter |
| 30 | uses: docker://rhysd/actionlint:latest |
| 31 | with: |
| 32 | args: -color -verbose |