{"id":22982423,"url":"https://github.com/niradler/policyer-github","last_synced_at":"2026-06-23T13:32:06.587Z","repository":{"id":46047659,"uuid":"427530521","full_name":"niradler/policyer-github","owner":"niradler","description":"Policyer provider to validate Github SDK calls","archived":false,"fork":false,"pushed_at":"2021-12-05T22:09:18.000Z","size":83,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-10T01:13:46.955Z","etag":null,"topics":["action","actions","github-action","github-actions","policyer"],"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/niradler.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":null,"security":null,"support":null}},"created_at":"2021-11-13T00:19:50.000Z","updated_at":"2021-12-05T22:09:21.000Z","dependencies_parsed_at":"2022-09-02T14:02:04.195Z","dependency_job_id":null,"html_url":"https://github.com/niradler/policyer-github","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/niradler/policyer-github","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niradler%2Fpolicyer-github","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niradler%2Fpolicyer-github/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niradler%2Fpolicyer-github/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niradler%2Fpolicyer-github/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niradler","download_url":"https://codeload.github.com/niradler/policyer-github/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niradler%2Fpolicyer-github/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34691754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["action","actions","github-action","github-actions","policyer"],"created_at":"2024-12-15T02:18:27.058Z","updated_at":"2026-06-23T13:32:06.550Z","avatar_url":"https://github.com/niradler.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# policyer-github\n\nGithub provider to test and validate github sdk calls.\n\n[visit policyer repository](https://github.com/niradler/policyer)\n\n## Getting Started\n\n```yaml\n# Create checks/validate_branch.yml file\nconfiguration:\n  provider: github-provider\n  type: github\nchecks:\n  - id: validate-branch-name\n    name: check if branch start with Fix-.\n    severity: High\n    steps:\n      - path: env.GITHUB_HEAD_REF\n        condition: equal\n        value: true\n        utility: regex\n        utilityProps:\n          - \"/^FIX-/\"\n```\n\n```yaml\n# Create checks/validate_pr_title.yml file\nconfiguration:\n  provider: github-provider\n  type: rest\n  validEvents:\n    - pull_request\n  domain: pulls\n  action: get\n  args:\n    owner: context.payload.pull_request.base.user.login\n    repo: context.payload.pull_request.base.repo.name\n    pull_number: context.payload.pull_request.number\nchecks:\n  - id: validate-pr-title\n    name: check if pr title start with FIX.\n    severity: High\n    steps:\n      - path: data.title\n        condition: equal\n        value: true\n        utility: regex\n        utilityProps:\n          - \"/^FIX/i\"\n```\n\nand add github action:\n\n```yaml\n# Add github action file .github/workflows/policyer.yml\nname: Policyer\n\non: [pull_request]\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - name: Policyer GitHub Action\n        uses: policyerorg/policyer-action@v0.0.3-alpha\n        with:\n          verbose: false\n          provider: policyer-github\n          internal: false\n          checks_path: ./checks\n```\n\n![Workflow](static/action.PNG)\n\nLinks for github documentation:\n\n- https://docs.github.com/en/rest/reference\n- https://octokit.github.io/rest.js/v18\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniradler%2Fpolicyer-github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniradler%2Fpolicyer-github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniradler%2Fpolicyer-github/lists"}