{"id":20660637,"url":"https://github.com/devpow112/git-sanitize","last_synced_at":"2026-04-02T16:05:24.115Z","repository":{"id":36960299,"uuid":"334822132","full_name":"devpow112/git-sanitize","owner":"devpow112","description":":computer: Git custom command that will do a full \"sanitize\" of a branch","archived":false,"fork":false,"pushed_at":"2026-03-11T23:11:52.000Z","size":3047,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-12T04:43:27.097Z","etag":null,"topics":["github-actions","nodejs"],"latest_commit_sha":null,"homepage":"https://npmjs.com/git-sanitize","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/devpow112.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","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":"2021-02-01T03:44:31.000Z","updated_at":"2026-03-11T23:11:18.000Z","dependencies_parsed_at":"2024-01-01T01:25:16.192Z","dependency_job_id":"918dc25e-f110-4054-b7bd-a5c273062f1a","html_url":"https://github.com/devpow112/git-sanitize","commit_stats":{"total_commits":576,"total_committers":5,"mean_commits":115.2,"dds":0.3524305555555556,"last_synced_commit":"8378a11a751390f1ae98e328af7f3c5534ea5f1a"},"previous_names":[],"tags_count":102,"template":false,"template_full_name":null,"purl":"pkg:github/devpow112/git-sanitize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devpow112%2Fgit-sanitize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devpow112%2Fgit-sanitize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devpow112%2Fgit-sanitize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devpow112%2Fgit-sanitize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devpow112","download_url":"https://codeload.github.com/devpow112/git-sanitize/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devpow112%2Fgit-sanitize/sbom","scorecard":{"id":338259,"data":{"date":"2025-08-11","repo":{"name":"github.com/devpow112/git-sanitize","commit":"150d3eeaaca23ba86eb86c72c851fd22926a793f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":6.6,"checks":[{"name":"Maintained","score":10,"reason":"23 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","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":"Code-Review","score":0,"reason":"Found 0/6 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":"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":"Security-Policy","score":4,"reason":"security policy file detected","details":["Info: security policy file detected: .github/SECURITY.md:1","Warn: no linked content found","Info: Found disclosure, vulnerability, and/or timelines in security policy: .github/SECURITY.md:1","Info: Found text in security policy: .github/SECURITY.md:1"],"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":"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":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/devpow112/git-sanitize/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/devpow112/git-sanitize/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/devpow112/git-sanitize/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/devpow112/git-sanitize/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull-request.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/devpow112/git-sanitize/pull-request.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/devpow112/git-sanitize/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/devpow112/git-sanitize/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/devpow112/git-sanitize/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/sync-labels.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/devpow112/git-sanitize/sync-labels.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/sync-labels.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/devpow112/git-sanitize/sync-labels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-license.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/devpow112/git-sanitize/update-license.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-license.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/devpow112/git-sanitize/update-license.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-license.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/devpow112/git-sanitize/update-license.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-node.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/devpow112/git-sanitize/update-node.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-node.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/devpow112/git-sanitize/update-node.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-node.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/devpow112/git-sanitize/update-node.yml/main?enable=pin","Info:   0 out of  13 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   3 out of   3 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":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/pull-request.yml:11","Warn: jobLevel 'security-events' permission set to 'write': .github/workflows/pull-request.yml:12","Info: jobLevel 'contents' permission set to 'read': .github/workflows/pull-request.yml:18","Info: jobLevel 'contents' permission set to 'read': .github/workflows/release.yml:12","Warn: jobLevel 'security-events' permission set to 'write': .github/workflows/release.yml:13","Info: topLevel 'contents' permission set to 'read': .github/workflows/ci.yml:5","Info: topLevel 'contents' permission set to 'read': .github/workflows/pull-request.yml:6","Info: topLevel 'contents' permission set to 'read': .github/workflows/release.yml:7","Info: topLevel 'contents' permission set to 'read': .github/workflows/sync-labels.yml:10","Info: topLevel 'contents' permission set to 'read': .github/workflows/update-license.yml:10","Info: topLevel 'contents' permission set to 'read': .github/workflows/update-node.yml:10"],"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":"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":8,"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'","Info: 'stale review dismissal' is required to merge on branch 'main'","Warn: required approving review count is 1 on branch 'main'","Info: codeowner review is required on branch 'main'","Info: 'last push approval' is required to merge on branch 'main'","Info: 'up-to-date branches' is required to merge on branch 'main'","Info: status check found to merge onto on 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":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:15"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 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":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7"],"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-18T05:13:44.104Z","repository_id":36960299,"created_at":"2025-08-18T05:13:44.104Z","updated_at":"2025-08-18T05:13:44.104Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30479124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T20:45:58.186Z","status":"ssl_error","status_checked_at":"2026-03-13T20:45:20.133Z","response_time":60,"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","nodejs"],"created_at":"2024-11-16T19:05:38.098Z","updated_at":"2026-03-14T01:13:27.061Z","avatar_url":"https://github.com/devpow112.png","language":"JavaScript","readme":"# Git Sanitize\n\n[![License][License Badge]](LICENSE)\n[![Version][Version Badge]][Version Package]\n[![Release][Release Badge]][Release Workflow]\n[![Node Version][Node Version Badge]](package.json#L61)\n\nGit custom command that will do a full \"sanitize\" of a branch. This will reset\nthe branch and all submodules to be back to the branches `HEAD` state by\neffectively running the following.\n\n```console\ngit clean -xfdf\ngit submodule foreach --recursive git clean -xfdf\ngit reset --hard\ngit submodule foreach --recursive git reset --hard\ngit submodule update --init --recursive\n```\n\n## Installation\n\n```console\nnpm i -g git-sanitize\n```\n\n## Usage\n\n```console\ngit sanitize\n```\n\n## Development\n\nDevelopment can be done on any machine that can install **Node.js**.\n\n### Install Dependencies\n\nInstall dependencies via `npm`.\n\n```console\nnpm i\n```\n\n### Linting\n\nExecute linters via `npm`.\n\n```console\n# git, javascript, markdown and package.json\nnpm run lint\n\n# git only\nnpm run lint:git\n\n# javascript only\nnpm run lint:js\n\n# markdown only\nnpm run lint:md\n\n# package.json only\nnpm run lint:pkg\n```\n\n### Fixing\n\nExecute automatic fixers via `npm`.\n\n```console\n# javascript, markdown and package.json\nnpm run fix\n\n# javascript only\nnpm run fix:js\n\n# markdown only\nnpm run fix:md\n\n# package.json only\nnpm run fix:pkg\n```\n\n### Building\n\nRun a build via `npm`.\n\n```console\nnpm run build\n```\n\n\u003c!-- links --\u003e\n[License Badge]: https://img.shields.io/github/license/devpow112/git-sanitize?label=License\n[Version Badge]: https://img.shields.io/npm/v/git-sanitize?label=Version\n[Version Package]: https://www.npmjs.com/git-sanitize\n[Node Version Badge]: https://img.shields.io/node/v/git-sanitize\n[Release Badge]: https://github.com/devpow112/git-sanitize/actions/workflows/release.yml/badge.svg?branch=main\n[Release Workflow]: https://github.com/devpow112/git-sanitize/actions/workflows/release.yml?query=branch%3Amain\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevpow112%2Fgit-sanitize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevpow112%2Fgit-sanitize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevpow112%2Fgit-sanitize/lists"}