{"id":23104091,"url":"https://github.com/glueops/github-actions-cleanup-redundant-cd-prs","last_synced_at":"2026-04-02T12:39:41.259Z","repository":{"id":210979858,"uuid":"725878102","full_name":"GlueOps/github-actions-cleanup-redundant-cd-prs","owner":"GlueOps","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-22T14:51:53.000Z","size":64,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-23T05:56:45.200Z","etag":null,"topics":["allow-auto-merge"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GlueOps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-12-01T03:55:21.000Z","updated_at":"2026-02-26T06:37:22.000Z","dependencies_parsed_at":"2024-05-17T20:43:29.829Z","dependency_job_id":"56707c17-4e30-458d-b3bd-b4c84c776790","html_url":"https://github.com/GlueOps/github-actions-cleanup-redundant-cd-prs","commit_stats":null,"previous_names":["glueops/github-actions-cleanup-redundant-cd-prs"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/GlueOps/github-actions-cleanup-redundant-cd-prs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlueOps%2Fgithub-actions-cleanup-redundant-cd-prs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlueOps%2Fgithub-actions-cleanup-redundant-cd-prs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlueOps%2Fgithub-actions-cleanup-redundant-cd-prs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlueOps%2Fgithub-actions-cleanup-redundant-cd-prs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GlueOps","download_url":"https://codeload.github.com/GlueOps/github-actions-cleanup-redundant-cd-prs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlueOps%2Fgithub-actions-cleanup-redundant-cd-prs/sbom","scorecard":{"id":57044,"data":{"date":"2025-08-11","repo":{"name":"github.com/GlueOps/github-actions-cleanup-redundant-cd-prs","commit":"21b9205b42b784d435b857a5e97f61ef7fa8995b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 1/25 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":0,"reason":"1 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":"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/glueops-basics.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/GlueOps/github-actions-cleanup-redundant-cd-prs/glueops-basics.yml/main?enable=pin","Info:   0 out of   1 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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/glueops-basics.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":"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":"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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":3,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'main'","Warn: 'stale review dismissal' is disabled on branch 'main'","Warn: branch 'main' does not require approvers","Warn: codeowners review is not required on branch 'main'","Warn: 'last push approval' is disabled on branch 'main'","Warn: no status checks found to merge onto branch 'main'","Info: PRs are required in order to make changes on 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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 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-15T00:58:13.771Z","repository_id":210979858,"created_at":"2025-08-15T00:58:13.771Z","updated_at":"2025-08-15T00:58:13.771Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31306212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T09:48:21.550Z","status":"ssl_error","status_checked_at":"2026-04-02T09:48:19.196Z","response_time":89,"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":["allow-auto-merge"],"created_at":"2024-12-17T00:31:18.383Z","updated_at":"2026-04-02T12:39:41.241Z","avatar_url":"https://github.com/GlueOps.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom Action to Clean Up Redundant Pull Requests\n\nThe GlueOps platform can optionally use automation to create pull requests to add an approval step before the platform Continuous Deployment automation is triggered.  A potential side effect of this automation is the creation of redundant pull requests to deploy new versions of a given application.\n\nFor example, if three releases are created to deploy to a Staging environment, but only the latest release is approved for a Production deployment, the approver will experience a pull request for each release and would only approve the latest release for production.  Then, manual cleanup would be required to close out dated pull requests and delete unneeded branches.\n\nThis action addresses the clutter of redundant pull requests by closing old PRs and deleting their associated branches.\n\nThe action is designed to be triggered by opening a pull request.\n\n## Input Values\n\n* `pr_number`: The number of the pull request triggering the action.  Retrieved from the triggering event\n* `gh_token`: The default github token, as this action leverages the [github_cli](https://github.com/cli/cli).\n\n## Usage\n\nDesigned to be implemented alongside the [GlueOps CD Actions](https://github.com/GlueOps/github-workflows/blob/main/.github/workflows/argocd-tags-ci.yml).\n\n### Output Values\n\nNone.\n\n### Example Configuration\n\n```yaml\nname: Trigger GlueOps/github-actions-cleanup-redundant-cd-prs\n\non:\n  pull_request:\n    types: [opened, reopened, synchronize]\n\njobs:\n  call-close-old-prs-workflow:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Run Cleanup\n        uses: GlueOps/github-actions-cleanup-redundant-cd-prs@v0.2.0\n        with:\n          pr_number: ${{ github.event.pull_request.number }}\n          gh_token: ${{ secrets.GITHUB_TOKEN }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglueops%2Fgithub-actions-cleanup-redundant-cd-prs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglueops%2Fgithub-actions-cleanup-redundant-cd-prs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglueops%2Fgithub-actions-cleanup-redundant-cd-prs/lists"}