name: Lint GitHub Actions Workflows on: workflow_dispatch: {} pull_request: branches: - main paths: - ".github/workflows/**" permissions: contents: read # Set default read-only permissions jobs: actionlint: runs-on: ubuntu-latest steps: - name: Harden the Runner (Step Security) uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 with: egress-policy: audit - name: Checkout Repo uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 with: persist-credentials: false - name: Run actionlint uses: nicholas-fedor/actionlint-action@94600bc28d99aa4dc960c8958ad86665c37a1527 # v1.0.6