{"id":20983129,"url":"https://github.com/pozil/auto-assign-issue","last_synced_at":"2026-04-24T10:03:59.964Z","repository":{"id":36956036,"uuid":"254036912","full_name":"pozil/auto-assign-issue","owner":"pozil","description":"GitHub Action that auto-assigns issues or PRs to one or more users/teams","archived":false,"fork":false,"pushed_at":"2026-02-01T15:32:54.000Z","size":94007,"stargazers_count":80,"open_issues_count":10,"forks_count":39,"subscribers_count":2,"default_branch":"v2","last_synced_at":"2026-02-22T09:47:38.459Z","etag":null,"topics":["github-actions","issues"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pozil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2020-04-08T09:02:06.000Z","updated_at":"2025-12-20T13:29:07.000Z","dependencies_parsed_at":"2024-08-22T11:15:11.196Z","dependency_job_id":"d3e0b806-2059-4b7b-9e9c-75e0768c4fa7","html_url":"https://github.com/pozil/auto-assign-issue","commit_stats":{"total_commits":160,"total_committers":13,"mean_commits":"12.307692307692308","dds":"0.41874999999999996","last_synced_commit":"941a01fffe76cdb6014b66ec41a76ab86e5ee23b"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/pozil/auto-assign-issue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pozil%2Fauto-assign-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pozil%2Fauto-assign-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pozil%2Fauto-assign-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pozil%2Fauto-assign-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pozil","download_url":"https://codeload.github.com/pozil/auto-assign-issue/tar.gz/refs/heads/v2","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pozil%2Fauto-assign-issue/sbom","scorecard":{"id":742626,"data":{"date":"2025-08-11","repo":{"name":"github.com/pozil/auto-assign-issue","commit":"39c06395cbac76e79afc4ad4e5c5c6db6ecfdd2e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 2/23 approved changesets -- score normalized to 0","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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: Creative Commons Zero v1.0 Universal: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":-1,"reason":"internal error: error during GetBranch(v1): error during branchesHandler.query: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"Binary-Artifacts","score":6,"reason":"binaries present in source code","details":["Warn: binary detected: node_modules/flatted/python/__pycache__/flatted.cpython-311.pyc:1","Warn: binary detected: node_modules/fsevents/fsevents.node:1","Warn: binary detected: node_modules/undici/lib/llhttp/llhttp.wasm:1","Warn: binary detected: node_modules/undici/lib/llhttp/llhttp_simd.wasm:1"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 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"}},{"name":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/pozil/auto-assign-issue/ci.yml/v2?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/pozil/auto-assign-issue/ci.yml/v2?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/pozil/auto-assign-issue/ci.yml/v2?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand 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":"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":"Vulnerabilities","score":0,"reason":"25 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-cxrh-j4jr-qwg3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T17:52:24.378Z","repository_id":36956036,"created_at":"2025-08-22T17:52:24.378Z","updated_at":"2025-08-22T17:52:24.378Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32218290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T09:47:08.147Z","status":"ssl_error","status_checked_at":"2026-04-24T09:46:41.165Z","response_time":64,"last_error":"SSL_read: 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":["github-actions","issues"],"created_at":"2024-11-19T05:47:50.451Z","updated_at":"2026-04-24T10:03:59.933Z","avatar_url":"https://github.com/pozil.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub action that auto-assigns issues or PRs to users or team members\n\n[![CI Workflow](https://github.com/pozil/auto-assign-issue/workflows/CI/badge.svg)](https://github.com/pozil/auto-assign-issue/actions?query=workflow%3ACI) [![codecov](https://codecov.io/gh/pozil/auto-assign-issue/branch/master/graph/badge.svg)](https://codecov.io/gh/pozil/auto-assign-issue) [![GitHub Marketplace](https://img.shields.io/badge/Marketplace-Auto%20Assign%20Issue-blue.svg?colorA=24292e\u0026colorB=0366d6\u0026style=flat\u0026longCache=true\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=)](https://github.com/marketplace/actions/auto-assign-issue)\n\n## Inputs\n\n| Parameter                      | Type    | Required                             | Default | Description                                                                                                                                                                                                                                                                                                                                             |\n| ------------------------------ | ------- | ------------------------------------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `assignees`                    | String  | only if `teams` is not specified     | n/a     | Comma separated list of user names with optional [weights](#working-with-weighted-assignements). Issue will be assigned to those users.                                                                                                                                                                                                                 |\n| `teams`                        | String  | only if `assignees` is not specified | n/a     | Comma separated list of team names without the org prefix with optional [weights](#working-with-weighted-assignements). Issue will be assigned to the team members.\u003cbr/\u003e\u003cbr/\u003e**Important Requirement:** if using the `teams` input parameter, you need to use a personal access token with `read:org` scope (the default `GITHUB_TOKEN` is not enough). |\n| `numOfAssignee`                | Number  | false                                | n/a     | Number of assignees that will be randomly picked from the teams or assignees. If not specified, assigns all users.                                                                                                                                                                                                                                      |\n| `abortIfPreviousAssignees`     | Boolean | false                                | false   | Flag that aborts the action if there were assignees previously. This does not cause the action to fail.                                                                                                                                                                                                                                                 |\n| `removePreviousAssignees`      | Boolean | false                                | false   | Flag that removes assignees before assigning them (useful the issue is reasigned).                                                                                                                                                                                                                                                                      |\n| `allowNoAssignees`             | Boolean | false                                | false   | Flag that prevents the action from failing when there are no assignees.                                                                                                                                                                                                                                                                                 |\n| `allowSelfAssign`              | Boolean | false                                | true    | Flag that allows self-assignment to the issue author.\u003cbr/\u003e\u003cbr/\u003eThis flag is ignored when working with PRs as self assigning a PR for review is forbidden by GitHub.                                                                                                                                                                                     |\n| `issueNumber`                  | Number  | false                                | n/a     | Allows to override the issue number. This can be useful when context is missing.                                                                                                                                                                                                                                                                        |\n| `teamIsPullRequestReviewer`    | Boolean | false                                | false   | Sets team as the PR reviewer instead of a member of the team.                                                                                                                                                                                                                                                                                           |\n| `failsIfUsersCannotBeAssigned` | Boolean | false                                | false   | Flag that causes the action to fail if one ore more users cannot be assigned to an issue. If not set the invalid users are simply ignored.                                                                                                                                                                                                              |\n\n## Examples\n\n### Working with Issues\n\nThis example auto-assigns new issues to two users randomly chosen from `octocat`, `cat` and `dog`.\nIt won't self-assign to the issue author.\n\n```yml\nname: Issue assignment\n\non:\n    issues:\n        types: [opened]\n\njobs:\n    auto-assign:\n        runs-on: ubuntu-latest\n        permissions:\n            issues: write\n        steps:\n            - name: 'Auto-assign issue'\n              uses: pozil/auto-assign-issue@v2\n              with:\n                  assignees: octocat,cat,dog\n                  numOfAssignee: 2\n                  allowSelfAssign: false\n```\n\n### Working with PRs\n\nThis example assigns PRs to a random member of the `support` team:\n\n```yml\nname: PR assignment\n\non:\n    pull_request:\n        types: [opened, edited, synchronize, reopened]\n\njobs:\n    auto-assign:\n        runs-on: ubuntu-latest\n        permissions:\n            pull-requests: write\n        steps:\n            - name: 'Auto-assign PR'\n              uses: pozil/auto-assign-issue@v2\n              with:\n                  repo-token: ${{ secrets.MY_PERSONAL_ACCESS_TOKEN }}\n                  teams: support\n                  numOfAssignee: 1\n```\n\n### Working with weighted assignements\n\nWhen specifying `assignees` or `teams` values, you may provide weights to balance the randomness of the selection.\nThe following formats are supported:\n\n```yml\n# No weights specified (same weight for all items)\nassignees: a, b, c\n# Weights specified\nassignees: a:1, b:5, c:2\n# Some weights specified (item weight defaults to 1 when not specified)\nassignees: a, b:2, c\n```\n\nLet's look at a practical example:\n\n```yml\nassignees: octocat:4,cat\n```\n\n- `octocat` has a weight of `4`.\n- `cat` has a weight of `1` (default value).\n- `octocat` has 4 chances out of 5 to be selected.\n\n### Working with Project Cards\n\n\u003e [!WARNING]\n\u003e\n\u003e `project_card` events are only supported on legacy Project (Classic) ([see docs](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#project_card)).\n\nThis example assigns a project card to the `triage` team when the card is moved.\nIt removes previously assigned users.\n\n```yml\nname: Project card assignment\n\non:\n    project_card:\n        types: [moved]\n\njobs:\n    auto-assign:\n        runs-on: ubuntu-latest\n        permissions:\n            issues: write\n        steps:\n            - name: 'Auto-assign card'\n              uses: pozil/auto-assign-issue@v2\n              with:\n                  repo-token: ${{ secrets.MY_PERSONAL_ACCESS_TOKEN }}\n                  teams: triage\n                  removePreviousAssignees: true\n```\n\n### Specifying a dynamic user\n\nInstead of hardcoding the user name in the workflow, you can use a repository variable:\n\n- create a GitHub repo variable named `DEFAULT_ISSUE_ASSIGNEE` with the name of the user\n- use this value `${{ vars.DEFAULT_ISSUE_ASSIGNEE }}` instead of the username in the workflow.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpozil%2Fauto-assign-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpozil%2Fauto-assign-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpozil%2Fauto-assign-issue/lists"}