Index: .github/workflows/validate-codeowners.yml =================================================================== --- /dev/null +++ .github/workflows/validate-codeowners.yml @@ -0,0 +1,18 @@ +name: Validate CODEOWNERS + +on: + schedule: + # Runs at 08:00 UTC every day + - cron: '0 8 * * *' + +jobs: + build: + name: Validate CODEOWNERS + runs-on: ubuntu-20.04 + steps: + - uses: mszostok/codeowners-validator@v0.6.0 + with: + checks: "files,owners,duppatterns,syntax" + # GitHub access token is required only if the `owners` check is enabled + # Token has "repo/public_repo" and "admin:org/read:org" permissions. + github_access_token: "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"