|
8 | 8 | validate-codeowners:
|
9 | 9 | runs-on: ubuntu-latest
|
10 | 10 | steps:
|
11 |
| - - name: "Checkout source code at current commit" |
12 |
| - uses: actions/checkout@v2 |
13 |
| - # Leave pinned at 0.7.1 until https://github.com/mszostok/codeowners-validator/issues/173 is resolved |
14 |
| - - uses: mszostok/[email protected] |
15 |
| - if: github.event.pull_request.head.repo.full_name == github.repository |
16 |
| - name: "Full check of CODEOWNERS" |
17 |
| - with: |
18 |
| - # For now, remove "files" check to allow CODEOWNERS to specify non-existent |
19 |
| - # files so we can use the same CODEOWNERS file for Terraform and non-Terraform repos |
20 |
| - # checks: "files,syntax,owners,duppatterns" |
21 |
| - checks: "syntax,owners,duppatterns" |
22 |
| - owner_checker_allow_unowned_patterns: "false" |
23 |
| - # GitHub access token is required only if the `owners` check is enabled |
24 |
| - github_access_token: "${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}" |
25 |
| - - uses: mszostok/[email protected] |
26 |
| - if: github.event.pull_request.head.repo.full_name != github.repository |
27 |
| - name: "Syntax check of CODEOWNERS" |
28 |
| - with: |
29 |
| - checks: "syntax,duppatterns" |
30 |
| - owner_checker_allow_unowned_patterns: "false" |
| 11 | + - name: "Checkout source code at current commit" |
| 12 | + uses: actions/checkout@v3 |
| 13 | + |
| 14 | + # Leave pinned at 0.7.1 until https://github.com/mszostok/codeowners-validator/issues/173 is resolved |
| 15 | + - uses: mszostok/[email protected] |
| 16 | + if: github.event.pull_request.head.repo.full_name == github.repository |
| 17 | + name: "Full check of CODEOWNERS" |
| 18 | + with: |
| 19 | + # For now, remove "files" check to allow CODEOWNERS to specify non-existent |
| 20 | + # files so we can use the same CODEOWNERS file for Terraform and non-Terraform repos |
| 21 | + # checks: "files,syntax,owners,duppatterns" |
| 22 | + checks: "syntax,owners,duppatterns" |
| 23 | + owner_checker_allow_unowned_patterns: "false" |
| 24 | + # GitHub access token is required only if the `owners` check is enabled |
| 25 | + github_access_token: "${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}" |
| 26 | + - uses: mszostok/[email protected] |
| 27 | + if: github.event.pull_request.head.repo.full_name != github.repository |
| 28 | + name: "Syntax check of CODEOWNERS" |
| 29 | + with: |
| 30 | + checks: "syntax,duppatterns" |
| 31 | + owner_checker_allow_unowned_patterns: "false" |
0 commit comments