{"id":15870910,"url":"https://github.com/int128/find-codeowners-action","last_synced_at":"2026-05-16T02:17:51.714Z","repository":{"id":229933918,"uuid":"778053519","full_name":"int128/find-codeowners-action","owner":"int128","description":"Find owners from CODEOWNERS in GitHub Actions","archived":false,"fork":false,"pushed_at":"2026-03-06T20:39:04.000Z","size":4726,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-06T23:42:35.122Z","etag":null,"topics":["codeowners","github-actions"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/int128.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-27T01:37:28.000Z","updated_at":"2026-03-06T20:38:47.000Z","dependencies_parsed_at":"2025-06-14T08:27:19.463Z","dependency_job_id":"8126cd4b-3bf8-4beb-bd47-3e75d6d04db2","html_url":"https://github.com/int128/find-codeowners-action","commit_stats":null,"previous_names":["int128/get-codeowners-action","int128/find-codeowners-action"],"tags_count":34,"template":false,"template_full_name":"int128/typescript-action","purl":"pkg:github/int128/find-codeowners-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Ffind-codeowners-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Ffind-codeowners-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Ffind-codeowners-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Ffind-codeowners-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/int128","download_url":"https://codeload.github.com/int128/find-codeowners-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Ffind-codeowners-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30236270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T23:09:55.450Z","status":"ssl_error","status_checked_at":"2026-03-07T23:00:57.737Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codeowners","github-actions"],"created_at":"2024-10-06T00:40:53.417Z","updated_at":"2026-03-07T23:11:42.056Z","avatar_url":"https://github.com/int128.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# find-codeowners-action [![ts](https://github.com/int128/find-codeowners-action/actions/workflows/ts.yaml/badge.svg)](https://github.com/int128/find-codeowners-action/actions/workflows/ts.yaml)\n\nThis action finds the owners from [CODEOWNERS](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners).\n\n## Getting Started\n\nTo find the owners of a file,\n\n```yaml\nsteps:\n  - uses: actions/checkout@v4\n  - id: codeowners\n    uses: int128/find-codeowners-action@v0\n    with:\n      codeowners: CODEOWNERS\n      path: src/index.ts\n```\n\nThis action reads `CODEOWNERS` file in the working directory,\nand finds the owners of `src/index.ts`.\n\nIf no owner is found, this action returns an empty string.\n\n## Examples\n\n### Notify a workflow run event to the owners\n\nTo notify an event to the corresponding owners,\n\n```yaml\non:\n  workflow_run:\n    types:\n      - completed\n\njobs:\n  notify-workflow-run:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - id: codeowners\n        uses: int128/find-codeowners-action@v0\n        with:\n          codeowners: CODEOWNERS\n          path: ${{ github.event.workflow.path }}\n\n      # Something to notify\n      - uses: slackapi/slack-github-action@v1\n        with:\n          channel-id: example\n          slack-message: |\n            Hey ${{ steps.codeowners.outputs.owners-without-organization }}, done!\n```\n\n### Test the coverage of CODEOWNERS\n\nTo ensure the all workflows are owned by anyone,\n\n```yaml\njobs:\n  validate-coverage:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - id: codeowners\n        uses: int128/find-codeowners-action@v0\n        with:\n          codeowners: CODEOWNERS\n          path: .github/workflows/*\n          path-glob: true\n      - if: steps.codeowners.outputs.orphan-files\n        run: exit 1\n```\n\nIf a file is not owned in CODEOWNERS, this action shows the message.\n\n```console\nWarning: File .github/workflows/build.yaml is not owned by anyone\n```\n\n## Specification\n\n### Inputs\n\n| Name         | Default    | Description                                 |\n| ------------ | ---------- | ------------------------------------------- |\n| `codeowners` | (required) | Path of CODEOWNERS                          |\n| `path`       | (required) | Path(s) to find the owners (multiline)      |\n| `path-glob`  | false      | If true, evaluate `path` as glob pattern(s) |\n\n### Outputs\n\n| Name                          | Description                                                            |\n| ----------------------------- | ---------------------------------------------------------------------- |\n| `owners`                      | List of owners, separated by space                                     |\n| `owners-without-organization` | List of owners in the form of `@user` or `@team`, separated by space   |\n| `orphan-files`                | List of files which are not owned in CODEOWNERS, separated by new line |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fint128%2Ffind-codeowners-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fint128%2Ffind-codeowners-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fint128%2Ffind-codeowners-action/lists"}