-
Notifications
You must be signed in to change notification settings - Fork 99
26 lines (24 loc) · 975 Bytes
/
validate-codeowners.yml
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
name: Validate Codeowners
on:
push:
branches:
- main
pull_request:
merge_group:
jobs:
codeowners:
name: Validate Codeowners
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
# https://github.com/marketplace/actions/github-codeowners-validator
- uses: mszostok/codeowners-validator@7f3f5e28c6d7b8dfae5731e54ce2272ca384592f # v0.7.4
with:
# TODO(https://github.com/square/workflow-kotlin/issues/316) Add the owners check
# back once this is fixed, or we implement a workaround.
checks: "files,syntax,duppatterns" #,owners
experimental_checks: "notowned"
# Wardell is not in the Square org apparently.
owner_checker_ignored_owners: "@wardellbagby"
# GitHub access token is required only if the `owners` check is enabled
github_access_token: "${{ secrets.OWNERS_VALIDATOR_GITHUB_SECRET }}"