{"id":47095152,"url":"https://github.com/adityaa30/check-commit","last_synced_at":"2026-03-12T14:02:28.839Z","repository":{"id":65159979,"uuid":"252885312","full_name":"adityaa30/check-commit","owner":"adityaa30","description":"Github Action to check if the commit follows proper syntax 😉","archived":false,"fork":false,"pushed_at":"2021-05-16T12:59:41.000Z","size":334,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-02-21T16:40:44.809Z","etag":null,"topics":["commit-conventions","github-actions","hacktoberfest","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/adityaa30.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":null,"security":null,"support":null}},"created_at":"2020-04-04T01:55:48.000Z","updated_at":"2024-03-18T03:57:23.000Z","dependencies_parsed_at":"2023-01-05T05:02:36.836Z","dependency_job_id":null,"html_url":"https://github.com/adityaa30/check-commit","commit_stats":{"total_commits":33,"total_committers":1,"mean_commits":33.0,"dds":0.0,"last_synced_commit":"51fa350ebffedd530a8528e797f356c1c357c051"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/adityaa30/check-commit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaa30%2Fcheck-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaa30%2Fcheck-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaa30%2Fcheck-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaa30%2Fcheck-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adityaa30","download_url":"https://codeload.github.com/adityaa30/check-commit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaa30%2Fcheck-commit/sbom","scorecard":{"id":166644,"data":{"date":"2025-08-11","repo":{"name":"github.com/adityaa30/check-commit","commit":"51fa350ebffedd530a8528e797f356c1c357c051"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"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":0,"reason":"Found 0/30 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/check-commit.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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-commit.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/adityaa30/check-commit/check-commit.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-commit.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/adityaa30/check-commit/check-commit.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/adityaa30/check-commit/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/adityaa30/check-commit/test.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/test.yml:31","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'","Warn: branch protection not enabled for branch 'v0.1'"],"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"}}]},"last_synced_at":"2025-08-16T15:06:40.925Z","repository_id":65159979,"created_at":"2025-08-16T15:06:40.925Z","updated_at":"2025-08-16T15:06:40.925Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30427714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:00:25.264Z","status":"ssl_error","status_checked_at":"2026-03-12T13:59:52.690Z","response_time":114,"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":["commit-conventions","github-actions","hacktoberfest","typescript"],"created_at":"2026-03-12T14:02:05.104Z","updated_at":"2026-03-12T14:02:28.817Z","avatar_url":"https://github.com/adityaa30.png","language":"TypeScript","readme":"\n\u003ca href=\"https://github.com/adityaa30/check-commit\"\u003e\n    \u003cimg alt=\"GitHub Actions status\" src=\"https://github.com/actions/checkout/workflows/Build%20and%20Test/badge.svg\"\u003e\n\u003c/a\u003e\n\n# Check Commit Message\n\nAction to check if the commit follows proper guidelines as specified [here](http://karma-runner.github.io/latest/dev/git-commit-msg.html)\n\n## Usage\n\nCreate a workflow `.yml` file in your repositories `.github/workflows` directory\n(eg. `.github/workflows/check-commit.yml`). In your workflow you first need to checkout\nyour repository then use this [action](https://github.com/adityaa30/check-commit).\n\nRefer to the example below,\n\n```yaml\nname: Check Commit Message\n\non: [pull_request, push]\n\njobs:\n  check:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout 🛎️\n        uses: actions/checkout@v2\n\n      - name: Check commit 🧪\n        uses: adityaa30/check-commit@master\n```\n\n## Input Parameters\n\n- `compulsory-scope`\n  - Either 'true' or 'false'\n  - Defaults to 'false'\n  - If true, scope field becomes compulsory for each commit (refer [here](http://karma-runner.github.io/latest/dev/git-commit-msg.html))\n\n- `max-header-length`\n  - Should be a valid non-zero positive integer\n  - Defaults to 50\n  - Raises an error if length of commit header is more than specified\n\n## Project Installation\n\n**[Fork](https://help.github.com/en/github/getting-started-with-github/fork-a-repo)** the repository\n\n```bash\n# Clone the forked repository\ngit clone https://github.com/\u003cgit-username\u003e/check-commit.git\n\n# Enter project directory\ncd check-commit\n\n# Install dependencies\nnpm install\n\n# Build the project\nnpm run build\n```\n\n### NOTE\n\n- Before pushing any changes, please build the project to update the `dist/index.js` in order to reflect your changes in github\n- To test the project in your local use [act](https://github.com/nektos/act)\n\n## TODO\n\n- [x] Get the commit message\n- [x] Implement rules based on syntax defined [here](http://karma-runner.github.io/latest/dev/git-commit-msg.html)\n- [x] Helper functions to check commit message based on rules\n- [x] Add input parameter `compulsory-scope`\n- [x] Add input parameter `max-header-length`\n- [ ] Add a **[CLI](https://en.wikipedia.org/wiki/Command-line_interface)**\n- [ ] Add custom **[input parameters](https://help.github.com/en/actions/building-actions/metadata-syntax-for-github-actions#inputs)**\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityaa30%2Fcheck-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadityaa30%2Fcheck-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityaa30%2Fcheck-commit/lists"}