-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 1.15 KB
/
actionlint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
# Separate the workflow for actionlint to other workflows, because if a workflow for actionlint is broken actionlint isn't run
name: actionlint
env:
AQUA_POLICY_CONFIG: ${{ github.workspace }}/aqua/policy.yaml
on:
pull_request:
paths:
- .github/workflows/*.yaml
- aqua/actionlint.yaml
- aqua/reviewdog.yaml
permissions: {}
jobs:
actionlint:
uses: suzuki-shunsuke/actionlint-workflow/.github/workflows/actionlint.yaml@b6a5f966d4504893b2aeb60cf2b0de8946e48504 # v0.5.0
if: |
! github.event.pull_request.head.repo.fork
with:
aqua_policy_config: aqua/policy.yaml
aqua_version: v2.9.0
permissions:
pull-requests: write
contents: read
actionlint_fork:
# Lint GitHub Actions Workflows by actionlint.
if: github.event.pull_request.head.repo.fork
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- uses: aquaproj/aqua-installer@36dc5833b04eb63f06e3bb818aa6b7a6e6db99a9 # v2.1.2
with:
aqua_version: v2.9.0
- run: actionlint
env:
GITHUB_TOKEN: ${{github.token}}