| 1 |
name: Lint GitHub Actions Workflows |
| 2 |
|
| 3 |
on: |
| 4 |
workflow_dispatch: {} |
| 5 |
pull_request: |
| 6 |
branches: |
| 7 |
- main |
| 8 |
paths: |
| 9 |
- ".github/workflows/**" |
| 10 |
|
| 11 |
permissions: |
| 12 |
contents: read # Set default read-only permissions |
| 13 |
|
| 14 |
jobs: |
| 15 |
actionlint: |
| 16 |
runs-on: ubuntu-latest |
| 17 |
steps: |
| 18 |
- name: Harden the Runner (Step Security) |
| 19 |
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 |
| 20 |
with: |
| 21 |
egress-policy: audit |
| 22 |
|
| 23 |
- name: Checkout Repo |
| 24 |
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 |
| 25 |
with: |
| 26 |
persist-credentials: false |
| 27 |
|
| 28 |
- name: Run actionlint |
| 29 |
uses: nicholas-fedor/actionlint-action@94600bc28d99aa4dc960c8958ad86665c37a1527 # v1.0.6 |