| 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 |
| 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@05e31511f85b41b11d1cf0ef85d0992719546e2c |
| 20 |
with: |
| 21 |
egress-policy: audit |
| 22 |
|
| 23 |
- name: Checkout Repo |
| 24 |
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 |
| 25 |
with: |
| 26 |
persist-credentials: false |
| 27 |
|
| 28 |
- name: Run actionlint |
| 29 |
uses: nicholas-fedor/actionlint-action@b349ef9a439253e292855fc2b07b337a27bb2954 |