-
Notifications
You must be signed in to change notification settings - Fork 4
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
2 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -21,4 +21,37 @@ jobs: | |
with: | ||
xrefcheck-args: "--root untrusted-pr" | ||
|
||
# TODO: Use https://github.com/marketplace/actions/github-codeowners-validator | ||
codeowners: | ||
name: Validate codeowners | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
path: trusted-base | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
ref: refs/pull/${{ github.event.pull_request.number }}/merge | ||
path: untrusted-pr | ||
|
||
- uses: mszostok/[email protected] | ||
with: | ||
# GitHub access token is required only if the `owners` check is enabled | ||
# See https://github.com/mszostok/codeowners-validator/blob/main/docs/gh-auth.md#public-repositories | ||
github_access_token: "${{ secrets.OWNERS_VALIDATOR_GITHUB_SECRET }}" | ||
|
||
# The repository path in which CODEOWNERS file should be validated." | ||
repository_path: untrusted-pr | ||
|
||
# The owner and repository name. For example, gh-codeowners/codeowners-samples. Used to check if GitHub team is in the given organization and has permission to the given repository." | ||
owner_checker_repository: "${{ github.repository }}" | ||
|
||
# "The comma-separated list of experimental checks that should be executed. By default, all experimental checks are turned off. Possible values: notowned,avoid-shadowing" | ||
experimental_checks: "notowned,avoid-shadowing" | ||
|
||
# Specifies whether CODEOWNERS may have unowned files. For example, `/infra/oncall-rotator/oncall-config.yml` doesn't have owner and this is not reported. | ||
owner_checker_allow_unowned_patterns: "false" | ||
|
||
# Specifies whether only teams are allowed as owners of files. | ||
owner_checker_owners_must_be_teams: "false" |
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