{"id":18657388,"url":"https://github.com/garretpatten/codeowner-verifier","last_synced_at":"2026-05-02T02:33:04.946Z","repository":{"id":212271961,"uuid":"518516232","full_name":"garretpatten/codeowner-verifier","owner":"garretpatten","description":"A GitHub Action to verify CODEOWNERS files -- both that all files included in a PR or push are owned and (if an apiToken is passed) that all owners in the CODEOWNERS file are valid Teams within the GitHub organization in context.","archived":false,"fork":false,"pushed_at":"2023-12-17T19:32:37.000Z","size":53966,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T05:16:40.394Z","etag":null,"topics":["codeowners","github-actions"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/garretpatten.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-27T15:35:25.000Z","updated_at":"2024-07-26T14:48:29.000Z","dependencies_parsed_at":"2024-11-07T07:42:08.750Z","dependency_job_id":null,"html_url":"https://github.com/garretpatten/codeowner-verifier","commit_stats":null,"previous_names":["garretpatten/codeowner-verifier"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garretpatten%2Fcodeowner-verifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garretpatten%2Fcodeowner-verifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garretpatten%2Fcodeowner-verifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garretpatten%2Fcodeowner-verifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garretpatten","download_url":"https://codeload.github.com/garretpatten/codeowner-verifier/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239474947,"owners_count":19645020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-11-07T07:28:02.915Z","updated_at":"2025-11-05T21:30:33.968Z","avatar_url":"https://github.com/garretpatten.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![Issues](https://img.shields.io/github/issues/garretpatten/codeowner-verifier)](https://github.com/garretpatten/codeowner-verifier/issues)\n[![License MIT](https://img.shields.io/github/license/garretpatten/codeowner-verifier)](https://github.com/garretpatten/codeowner-verifier/blob/master/LICENSE)\n[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/garretpatten/codeowner-verifier/badge)](https://securityscorecards.dev/viewer/?uri=github.com/garretpatten/codeowner-verifier)\n[![Release](https://img.shields.io/github/v/release/garretpatten/codeowner-verifier)](https://github.com/garretpatten/codeowner-verifier/releases)\n\n# codeowner-verifier\nA GitHub Action that verifies that modified files are owned by codeowners. This Action is intended to run on pull requests to enforce code ownership defined in a repository's CODEOWNERS file.\n\n## Table of Contents\n- [Usage](#usage)\n\t- [Action Parameters](#action-parameters)\n\t\t- [changedFiles](#changedFiles)\n\t\t- [deletedFiles](#deletedFiles)\n\t- [Environment Variables](#environment-variables)\n\t\t- [GITHUB_TOKEN](#GITHUB_TOKEN)\n\t- [Files](#files)\n\t\t- [.codeownersignore](#.codeownersignore)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n\n## Usage\n\nThis GitHub Action has been built to be consumed by organizations and individual projects. In order to incorporate this Action into a repository's build process, a workflow file must be added to that respository's `.github/workflows` directory. The workflow file can be named as needed and should mirror the `codeowner-verifier.yml` file in this repository.\n\n### Action Parameters\n#### changedFiles\n`changedFiles` is a required parameter that facilitates the processing of updated files in the context of the CODEOWNERS file. `changedFiles` expects to receive a space-delimited list of the filepaths that have been updated in a given PR or push operation. The example workflow in this repository uses the GitHub CLI to generate the list for this parameter.\n#### deletedFiles\n`deletedFiles` is a required parameter that facilitates the processing of moved and deleted files in the context of the CODEOWNERS file. `deletedFiles` expects to receive a space-delimited list of the filepaths that have been moved or deleted in a given PR or push operation. The example workflow in this repository uses the GitHub CLI to generate the list for this parameter.\n### Environment Variables\n#### GITHUB_TOKEN\nThe `GITHUB_TOKEN` is a required environment variable that is needed for the Action to work in the context of a private GitHub organization. A token should be provided that is connected to a user who has requisite access to the repository in context. The codeowner-verifier workflow in this repository uses the shared `CODEOWNER_VERIFIER_TOKEN` for this parameter.\n### Files\n#### .codeownersignore\nThe `.codeownersignore` is an optional file at the root directory that allows a repository to dictate certain filepaths to ignore when validating the CODEOWNERS file. This ignore file is meant to be used for filepaths like `node_modules`, `.gitignore`, `README.md`, and any other files where it may not make sense to require an explicit owner in the CODEOWNERS file. It should be used like a `.gitignore` file with one filepath pattern per line that gets ignored.\n\n### Environment Variables\n\n#### GITHUB_TOKEN\n\nThe `GITHUB_TOKEN` is a required environment variable that is needed for the Action to work as intended in the context of a private GitHub organization. A token should be provided that is connected to a user who has requisite access to the organization and repository in context.\n\n## Maintainers\n\n[@GarretPatten](https://github.com/garretpatten)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarretpatten%2Fcodeowner-verifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgarretpatten%2Fcodeowner-verifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarretpatten%2Fcodeowner-verifier/lists"}