delfinacare/CODEOWNERS Check
Enforces CODEOWNERS approval on pull requests. Fails when required owners have not approved all changed files.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GitHub token used to read PR details, reviews, and file contents. Defaults to the token provided by the Actions runner. | no | ${{ github.token }} |
| codeowners-path | Path to the CODEOWNERS file in the repository. The file is fetched from the PR head SHA. | no | .github/CODEOWNERS |
| codeowners-contents | Raw CODEOWNERS file contents to use instead of fetching the file from the repository. When provided, codeowners-path is ignored. | no | "" |
| ignore-filepaths | Comma- or newline-separated list of file paths or glob patterns where CODEOWNERS rules should be ignored. | no | "" |
| ignore-authors | Comma- or newline-separated list of PR authors for which the CODEOWNERS check should be skipped entirely. | no | "" |
| always-succeed-before-approval | When true, the action exits successfully if the PR has no approvals yet, even if the CODEOWNERS check would otherwise have failed. This avoids spurious CI failures while a PR is still awaiting its first review. Most workflows already enforce at least one approval via branch protection, making this safe to leave enabled. | no | true |
| status-check-name | When set, the action posts a commit status with this name to the PR head SHA on every successful exit (except when exiting early because there are no approvals yet and always-succeed-before-approval is true). Set this to the same string you use as a required status check in your branch protection rules so that the protection requirement is satisfied as soon as the CODEOWNERS check passes. | no | "" |
Outputs
| name | description |
|---|---|
| files-missing-approver | JSON-encoded array of file paths that are missing a required approver. Use fromJSON() in expressions to parse the value. Returns an empty array when all files have required approvals or the check was skipped entirely. |