{"id":14986058,"url":"https://github.com/actions-cool/check-user-permission","last_synced_at":"2025-08-21T10:31:34.815Z","repository":{"id":44582768,"uuid":"344485868","full_name":"actions-cool/check-user-permission","owner":"actions-cool","description":"👮 A GitHub Action to check user permission of the current repository.","archived":false,"fork":false,"pushed_at":"2025-01-07T08:18:36.000Z","size":432,"stargazers_count":20,"open_issues_count":1,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-30T01:13:21.967Z","etag":null,"topics":["check","github-actions","permission","user"],"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/actions-cool.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-04T13:35:08.000Z","updated_at":"2025-06-29T18:32:11.000Z","dependencies_parsed_at":"2024-06-18T21:35:46.314Z","dependency_job_id":"02fce7a2-7b3a-493c-80e2-ec44e5d7296c","html_url":"https://github.com/actions-cool/check-user-permission","commit_stats":{"total_commits":44,"total_committers":5,"mean_commits":8.8,"dds":0.2727272727272727,"last_synced_commit":"956b2e73cdfe3bcb819bb7225e490cb3b18fd76e"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":"actions-cool/action-js-template","purl":"pkg:github/actions-cool/check-user-permission","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-cool%2Fcheck-user-permission","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-cool%2Fcheck-user-permission/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-cool%2Fcheck-user-permission/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-cool%2Fcheck-user-permission/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actions-cool","download_url":"https://codeload.github.com/actions-cool/check-user-permission/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-cool%2Fcheck-user-permission/sbom","scorecard":{"id":163614,"data":{"date":"2025-08-11","repo":{"name":"github.com/actions-cool/check-user-permission","commit":"7b90a27f92f3961b368376107661682c441f6103"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":1,"reason":"Found 3/30 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/check-permission.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-permission.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/actions-cool/check-user-permission/check-permission.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-permission.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/actions-cool/check-user-permission/check-permission.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/actions-cool/check-user-permission/test.yml/main?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T14:15:59.958Z","repository_id":44582768,"created_at":"2025-08-16T14:15:59.958Z","updated_at":"2025-08-16T14:15:59.958Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271462933,"owners_count":24764075,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"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":["check","github-actions","permission","user"],"created_at":"2024-09-24T14:12:12.791Z","updated_at":"2025-08-21T10:31:34.807Z","avatar_url":"https://github.com/actions-cool.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 👮 Check User Permission\n\n![](https://img.shields.io/github/actions/workflow/status/actions-cool/check-user-permission/test.yml?style=flat-square\u0026branch=main)\n[![](https://img.shields.io/badge/marketplace-check--user--permission-blueviolet?style=flat-square)](https://github.com/marketplace/actions/check-user-permission)\n[![](https://img.shields.io/github/v/release/actions-cool/check-user-permission?style=flat-square\u0026color=orange)](https://github.com/actions-cool/check-user-permission/releases)\n\n## 🚀 How to use?\n\n```yml\nname: Check User Permission\n\non:\n  issues:\n    types: [opened, edited]\n\njobs:\n  check:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions-cool/check-user-permission@v2\n```\n\n### Input\n\n| Name | Desc | Type | Required |\n| -- | -- | -- | -- |\n| token | GitHub token | string | ✖ |\n| require | Test whether the user meets the required permission | string | ✖ |\n| username | Obtained from the context by default, can also be customized to pass in | string | ✖ |\n| check-bot | Check whether the user is a bot | boolean | ✖ |\n| check-contributor | Check whether the user is contributor | boolean | ✖ |\n| error-if-missing | Error if require or check if false | boolean | ✖ |\n\n- User permission: `admin` \u003e `write` \u003e `read`\n- `username` support [github context](https://docs.github.com/en/actions/learn-github-actions/contexts#github-context)\n  - `actor`: The Default\n  - `triggering_actor`: The username of the user that initiated the workflow run even re-run\n  - Example: `username: github.triggering_actor`\n\n### Output\n\n- `user-permission`: `read` | `write` | `admin`\n- `require-result`: The result of require `true` | `false`\n- `check-result`: The result of check `true` | `false`\n\n\n\u003e How to use?\n\u003e - https://github.com/actions-cool/issues-helper#outputs-%E4%BD%BF%E7%94%A8\n\u003e - https://github.com/actions-cool/check-user-permission/blob/main/.github/workflows/check-permission.yml\n\u003e - https://github.com/actions-cool/test-ci/blob/main/.github/workflows/test-check-user.yml\n\n## ⚡ Feedback\n\nYou are very welcome to try it out and put forward your comments. You can use the following methods:\n\n- Report bugs or consult with [Issue](https://github.com/actions-cool/check-user-permissionissues)\n- Submit [Pull Request](https://github.com/actions-cool/check-user-permission/pulls) to improve the code of `check-user-permission`\n\n欢迎加入 钉钉交流群\n\n![](https://github.com/actions-cool/resources/blob/main/dingding.jpeg?raw=true)\n\n## Changelog\n\n[CHANGELOG](./CHANGELOG.md)\n\n## LICENSE\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-cool%2Fcheck-user-permission","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factions-cool%2Fcheck-user-permission","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-cool%2Fcheck-user-permission/lists"}