name: CI – Lint Workflows on: pull_request: paths: - '.github/workflows/**' push: branches: [ main ] paths: - '.github/workflows/**' workflow_dispatch: permissions: contents: read # A new push to a pull request supersedes its lint run, a run of main always reports. concurrency: group: actionlint-${{ github.event.pull_request.number || github.run_id }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: actionlint: runs-on: ubuntu-22.04 timeout-minutes: 10 permissions: contents: read checks: write pull-requests: write steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Setup actionlint uses: reviewdog/action-actionlint@ae857e78c1b42b3d0a49637181b09d3d56d402b4 # v1.84.1 with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-check level: error fail_level: error actionlint_flags: "-color"