This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
name: Validate Codeowners | ||
on: | ||
workflow_dispatch: | ||
|
||
pull_request: | ||
|
||
jobs: | ||
|
@@ -8,18 +10,21 @@ jobs: | |
steps: | ||
- name: "Checkout source code at current commit" | ||
uses: actions/checkout@v2 | ||
- uses: mszostok/[email protected] | ||
# Leave pinned at 0.7.1 until https://github.com/mszostok/codeowners-validator/issues/173 is resolved | ||
- uses: mszostok/[email protected] | ||
if: github.event.pull_request.head.repo.full_name == github.repository | ||
name: "Full check of CODEOWNERS" | ||
with: | ||
# For now, remove "files" check to allow CODEOWNERS to specify non-existent | ||
# files so we can use the same CODEOWNERS file for Terraform and non-Terraform repos | ||
# checks: "files,syntax,owners,duppatterns" | ||
checks: "syntax,owners,duppatterns" | ||
owner_checker_allow_unowned_patterns: "false" | ||
# GitHub access token is required only if the `owners` check is enabled | ||
github_access_token: "${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}" | ||
- uses: mszostok/codeowners-validator@v0.5.0 | ||
- uses: mszostok/codeowners-validator@v0.7.1 | ||
if: github.event.pull_request.head.repo.full_name != github.repository | ||
name: "Syntax check of CODEOWNERS" | ||
with: | ||
checks: "syntax,duppatterns" | ||
owner_checker_allow_unowned_patterns: "false" |