name: Lint GitHub Actions workflows
on:
  push:
    paths:
      - ".github/workflows/*.yml"

permissions:
  contents: read

jobs:
  actionlint:
    runs-on: ${{ fromJSON(vars.RUNNER) }}
    steps:
      - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
      - name: Check workflow files
        uses: docker://docker.mirror.hashicorp.services/rhysd/actionlint@sha256:5acca218639222e4afbc82fc6e9ef56cbe646ade3b07f3f5ec364b638258a244
        with:
          args: -color -ignore SC2129 -ignore "'property \"download-path\" is not defined in object type'"
