{"id":5800240,"name":"peter-evans/close-issue","ecosystem":"actions","description":"A GitHub action to close an issue","homepage":"","licenses":"mit","normalized_licenses":["MIT"],"repository_url":"https://github.com/peter-evans/close-issue","keywords_array":["automation","close-issue","github-action","github-issues","workflow"],"namespace":"peter-evans","versions_count":14,"first_release_published_at":"2020-05-06T00:23:36.000Z","latest_release_published_at":"2026-03-06T09:22:38.000Z","latest_release_number":"v3.0.2","last_synced_at":"2026-05-21T19:01:46.992Z","created_at":"2023-01-04T11:57:11.948Z","updated_at":"2026-05-21T19:01:46.993Z","registry_url":"https://github.com/peter-evans/close-issue","install_command":null,"documentation_url":null,"metadata":{"name":"Close Issue","description":"A GitHub action to close an issue","inputs":{"token":{"required":false,"description":"GitHub auth token","default":"${{ github.token }}"},"repository":{"required":false,"description":"The GitHub repository containing the issue","default":"${{ github.repository }}"},"issue-number":{"required":false,"description":"The number of the issue to close","default":"${{ github.event.issue.number }}"},"close-reason":{"required":false,"description":"Reason for closing the issue, \"completed\" or \"not_planned\"","default":"completed"},"comment":{"required":false,"description":"A comment to make on the issue before closing"},"labels":{"required":false,"description":"A comma or newline separated list of labels."}},"runs":{"using":"composite","steps":[{"name":"Set parameters","id":"params","shell":"bash","env":{"CLOSE_REASON":"${{ inputs.close-reason }}","LABELS":"${{ inputs.labels }}"},"run":"if [ \"$CLOSE_REASON\" == \"not_planned\" ]; then\n  echo close-reason=\"not planned\" \u003e\u003e $GITHUB_OUTPUT\nelse\n  echo close-reason=\"completed\" \u003e\u003e $GITHUB_OUTPUT\nfi\n\n# Convert labels to comma separated list\nif [ -n \"$LABELS\" ]; then\n  labels=$(echo \"$LABELS\" | tr '\\n' ',' | sed 's/,$//')\n  # Remove trailing comma and whitespace\n  labels=$(echo \"$labels\" | sed 's/,$//' | sed 's/[[:space:]]//g')\n  echo labels=\"$labels\" \u003e\u003e $GITHUB_OUTPUT\nfi\n"},{"name":"Close Issue","shell":"bash","env":{"GH_TOKEN":"${{ inputs.token }}","COMMENT":"${{ inputs.comment }}","REPOSITORY":"${{ inputs.repository }}","CLOSE_REASON":"${{ steps.params.outputs.close-reason }}","ISSUE_NUMBER":"${{ inputs.issue-number }}"},"run":"comment_args=()\nif [ -n \"$COMMENT\" ]; then\n  comment_args=(--comment \"$COMMENT\")\nfi\ngh issue close -R \"$REPOSITORY\" \\\n  --reason \"$CLOSE_REASON\" \\\n  \"${comment_args[@]}\" \\\n  \"$ISSUE_NUMBER\"\n"},{"name":"Add Labels","if":"steps.params.outputs.labels != ''","shell":"bash","env":{"GH_TOKEN":"${{ inputs.token }}","REPOSITORY":"${{ inputs.repository }}","LABELS":"${{ steps.params.outputs.labels }}","ISSUE_NUMBER":"${{ inputs.issue-number }}"},"run":"gh issue edit -R \"$REPOSITORY\" \\\n  --add-label \"$LABELS\" \\\n  \"$ISSUE_NUMBER\"\n"}]},"branding":{"icon":"git-pull-request","color":"gray-dark"},"default_branch":"main","path":null},"repo_metadata":{"id":42689088,"uuid":"261068159","full_name":"peter-evans/close-issue","owner":"peter-evans","description":"A GitHub action to close an issue","archived":false,"fork":false,"pushed_at":"2026-03-06T09:26:09.000Z","size":1080,"stargazers_count":35,"open_issues_count":0,"forks_count":14,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-18T02:19:06.289Z","etag":null,"topics":["automation","close-issue","github-action","github-issues","workflow"],"latest_commit_sha":null,"homepage":"","language":null,"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/peter-evans.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"peter-evans"}},"created_at":"2020-05-04T03:00:58.000Z","updated_at":"2026-03-06T09:22:43.000Z","dependencies_parsed_at":"2024-06-18T15:37:01.679Z","dependency_job_id":"939163ec-0faa-4a6f-96e2-47ec5152fa1d","html_url":"https://github.com/peter-evans/close-issue","commit_stats":{"total_commits":148,"total_committers":8,"mean_commits":18.5,"dds":0.5810810810810811,"last_synced_commit":"0f7b87be027e5e7f1a00cf7d8235f60a88b367d4"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/peter-evans/close-issue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-evans%2Fclose-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-evans%2Fclose-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-evans%2Fclose-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-evans%2Fclose-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peter-evans","download_url":"https://codeload.github.com/peter-evans/close-issue/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-evans%2Fclose-issue/sbom","scorecard":{"id":728574,"data":{"date":"2025-08-11","repo":{"name":"github.com/peter-evans/close-issue","commit":"830159ce49c1fc4dabc54f849e4a7396200e70ae"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/2 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":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"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":"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/automerge-dependabot.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/peter-evans/close-issue/automerge-dependabot.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/peter-evans/close-issue/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/peter-evans/close-issue/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/peter-evans/close-issue/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/peter-evans/close-issue/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/peter-evans/close-issue/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/slash-command-dispatch.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/peter-evans/close-issue/slash-command-dispatch.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-major-version.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/peter-evans/close-issue/update-major-version.yml/main?enable=pin","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/automerge-dependabot.yml:1","Warn: topLevel 'contents' permission set to 'write': .github/workflows/ci.yml:17","Warn: no topLevel permission defined: .github/workflows/slash-command-dispatch.yml:1","Warn: no topLevel permission defined: .github/workflows/update-major-version.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":"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":"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":"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":"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 branchesHandler.setup: 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":"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 30 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-22T13:41:24.187Z","repository_id":42689088,"created_at":"2025-08-22T13:41:24.187Z","updated_at":"2025-08-22T13:41:24.187Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31971478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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"},"tags":[]},"repo_metadata_updated_at":"2026-04-18T14:43:55.241Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":2575,"rankings":{"downloads":null,"dependent_repos_count":0.43416257328474095,"dependent_packages_count":0.0,"stargazers_count":6.5029313896371415,"forks_count":5.618760893677706,"docker_downloads_count":4.385992711139281,"average":3.3883695135477736},"purl":"pkg:githubactions/peter-evans/close-issue","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/peter-evans/close-issue","docker_dependents_count":1,"docker_downloads_count":23,"usage_url":"https://repos.ecosyste.ms/usage/actions/peter-evans/close-issue","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/peter-evans/close-issue/dependencies","status":null,"funding_links":["https://github.com/sponsors/peter-evans"],"critical":null,"issue_metadata":{"last_synced_at":"2025-09-07T16:07:34.877Z","issues_count":119,"pull_requests_count":20,"avg_time_to_close_issue":388.88695652173914,"avg_time_to_close_pull_request":11876.0,"issues_closed_count":115,"pull_requests_closed_count":20,"pull_request_authors_count":2,"issue_authors_count":3,"avg_comments_per_issue":0.9243697478991597,"avg_comments_per_pull_request":0.05,"merged_pull_requests_count":19,"bot_issues_count":117,"bot_pull_requests_count":18,"past_year_issues_count":13,"past_year_pull_requests_count":2,"past_year_avg_time_to_close_issue":6.1,"past_year_avg_time_to_close_pull_request":47.5,"past_year_issues_closed_count":10,"past_year_pull_requests_closed_count":2,"past_year_pull_request_authors_count":1,"past_year_issue_authors_count":2,"past_year_avg_comments_per_issue":0.6923076923076923,"past_year_avg_comments_per_pull_request":0.0,"past_year_bot_issues_count":12,"past_year_bot_pull_requests_count":2,"past_year_merged_pull_requests_count":2,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-evans%2Fclose-issue/issues","maintainers":[{"login":"peter-evans","count":2,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/peter-evans"}],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/peter-evans%2Fclose-issue/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/peter-evans%2Fclose-issue/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/peter-evans%2Fclose-issue/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/peter-evans%2Fclose-issue/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/peter-evans%2Fclose-issue/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/peter-evans%2Fclose-issue/codemeta","maintainers":[]}