{"id":24463399,"url":"https://github.com/gh-customer-success/github-user-audit","last_synced_at":"2026-04-17T00:02:24.085Z","repository":{"id":147185915,"uuid":"618143082","full_name":"gh-customer-success/github-user-audit","owner":"gh-customer-success","description":"Uses the GitHub GraphQL API to run audits on users and their permissions to an organization's repositories.","archived":false,"fork":false,"pushed_at":"2026-01-26T21:47:39.000Z","size":1716,"stargazers_count":0,"open_issues_count":23,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-27T13:12:18.089Z","etag":null,"topics":["actions","audit","github","github-actions","graphql"],"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/gh-customer-success.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":"audit.gql","citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-23T20:57:20.000Z","updated_at":"2023-04-11T03:22:02.000Z","dependencies_parsed_at":"2024-11-15T22:19:26.345Z","dependency_job_id":"60d4ec72-02d4-4c52-96cd-82b30e36beb5","html_url":"https://github.com/gh-customer-success/github-user-audit","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":"actions/javascript-action","purl":"pkg:github/gh-customer-success/github-user-audit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-customer-success%2Fgithub-user-audit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-customer-success%2Fgithub-user-audit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-customer-success%2Fgithub-user-audit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-customer-success%2Fgithub-user-audit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gh-customer-success","download_url":"https://codeload.github.com/gh-customer-success/github-user-audit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-customer-success%2Fgithub-user-audit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31909235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["actions","audit","github","github-actions","graphql"],"created_at":"2025-01-21T05:11:28.706Z","updated_at":"2026-04-17T00:02:24.046Z","avatar_url":"https://github.com/gh-customer-success.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub User Audit \n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/actions/javascript-action/actions\"\u003e\u003cimg alt=\"javscript-action status\" src=\"https://github.com/actions/javascript-action/workflows/units-test/badge.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nUses the GitHub GraphQL API to run audits on users and their permissions to an organization's repositories. \n\nGenerates a summary for all permissions and their count.\n\n\u003cimg width=\"385\" alt=\"image\" src=\"https://user-images.githubusercontent.com/680463/231044211-0fe1f677-8317-4dcd-88b4-73610eae2bd3.png\"\u003e\n\nAn artifact is uploaded as a CSV file. This format is supported by most spreadsheet applications, such as Microsoft [Excel](https://www.microsoft.com/en-us/microsoft-365/excel).\n\n\u003cimg width=\"768\" alt=\"image\" src=\"https://user-images.githubusercontent.com/680463/231049038-20481116-de7a-42e7-8f77-517ac11a1709.png\"\u003e\n\nAlternatively CSV files can be persisted in a NoSQL DB.\n\n\n## Personal Access Token (classic)\n\nAn Oganization Admin can [generate](https://github.com/settings/tokens) a token with the following permissions:\n\n\u003cimg width=\"426\" alt=\"image\" src=\"https://user-images.githubusercontent.com/680463/231043291-ce54bfc5-9d47-49b5-80cc-b317602addc7.png\"\u003e\n\u003cimg width=\"628\" alt=\"image\" src=\"https://user-images.githubusercontent.com/680463/231043402-983d914b-d787-456c-891a-70f6f2106180.png\"\u003e\n\u003cimg width=\"472\" alt=\"image\" src=\"https://user-images.githubusercontent.com/680463/231043457-47c8d3cc-6a9c-4f4f-b919-704d815b5316.png\"\u003e\n\n ```\n repo\n read:org \n read:user\n user:email\n ```\n\n## Using the Action\n\nThis Action requires 2 inputs: a [variable](https://docs.github.com/en/actions/learn-github-actions/variables#creating-configuration-variables-for-a-repository) (Organization Name) and a secret (API Token)\n\n\u003cimg width=\"386\" alt=\"image\" src=\"https://user-images.githubusercontent.com/680463/231046061-b0aca50f-17cd-4550-831c-8ead2a09cd95.png\"\u003e\n\nPass these values in your workflow file:\n\n```yml\n\n...\nsteps:\n  -\n    name: run audit\n    uses: gh-customer-success/github-user-audit@main\n    with:\n      api_token: ${{ secrets.MY_SECRET_TOEKN }}\n      owner: ${{ vars.MY_ORG_NAME }}\n    id: audit\n ...\n \n```\n\nWhen the run is successful  you should see a Job Summary with the total number of users for each `permission` and an artifact that can be downloaded by clicking on its name.\n\n\u003cimg width=\"568\" alt=\"image\" src=\"https://user-images.githubusercontent.com/680463/231046930-7e09e29c-07c0-4d2b-9866-99ec82dfffc1.png\"\u003e\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh-customer-success%2Fgithub-user-audit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgh-customer-success%2Fgithub-user-audit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh-customer-success%2Fgithub-user-audit/lists"}