{"id":14986009,"url":"https://github.com/sivkovych/check-version-sh","last_synced_at":"2026-01-27T07:05:20.073Z","repository":{"id":140721302,"uuid":"612376460","full_name":"sivkovych/check-version-sh","owner":"sivkovych","description":"GitHub Action to check wether your project version was updated in pull-request or a single commit","archived":false,"fork":false,"pushed_at":"2024-07-08T12:12:25.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-16T23:29:44.657Z","etag":null,"topics":["actions","bash","cicd","github-actions","version-control"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/check-version-sh","language":"Shell","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/sivkovych.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-10T20:07:29.000Z","updated_at":"2024-07-08T12:11:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"d37a4e76-4016-44ab-b5f9-4d3de03decdb","html_url":"https://github.com/sivkovych/check-version-sh","commit_stats":{"total_commits":43,"total_committers":2,"mean_commits":21.5,"dds":"0.023255813953488413","last_synced_commit":"70f493a87301ef7e0370fc5dbeddc4481510b176"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/sivkovych/check-version-sh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivkovych%2Fcheck-version-sh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivkovych%2Fcheck-version-sh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivkovych%2Fcheck-version-sh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivkovych%2Fcheck-version-sh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sivkovych","download_url":"https://codeload.github.com/sivkovych/check-version-sh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivkovych%2Fcheck-version-sh/sbom","scorecard":{"id":828324,"data":{"date":"2025-08-11","repo":{"name":"github.com/sivkovych/check-version-sh","commit":"70f493a87301ef7e0370fc5dbeddc4481510b176"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/10 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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/check-version.yaml: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":"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-version.yaml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/sivkovych/check-version-sh/check-version.yaml/main?enable=pin","Info:   0 out of   1 GitHub-owned 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":"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":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":"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-23T17:05:31.793Z","repository_id":140721302,"created_at":"2025-08-23T17:05:31.793Z","updated_at":"2025-08-23T17:05:31.793Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28807167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T06:25:51.065Z","status":"ssl_error","status_checked_at":"2026-01-27T06:25:50.640Z","response_time":168,"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":["actions","bash","cicd","github-actions","version-control"],"created_at":"2024-09-24T14:12:07.733Z","updated_at":"2026-01-27T07:05:20.058Z","avatar_url":"https://github.com/sivkovych.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# check-version-sh\n\n[![Marketplace](https://img.shields.io/badge/version-1.5.1-blue)](https://github.com/marketplace/actions/check-version-sh)\n\nAction functionality:\n\n- Ensure version changes regardless base branch on pull request\n- Ensure version changes regardless previous commit on push\n\n## Limitations\n\n- Currently supported options\n    - `pom.xml` - check for the first `\u003cversion\u003e...\u003c/version\u003e`\n    - `package.json` - check for the first `\"version\": \"...\"` version\n    - `package-lock.json` - check for the first `\"version\": \"...\"` version\n    - `README.md`\n        - `readme-version-badge` - check for the `https://*.+/badge/version-...` version\n        - `readme-nexus-badge` - check for the `https://*.+/badge/nexus-...` version\n        - `readme-changelog` - check for the `- **...**` version\n        - `readme-action` - check for the `\u003ccurrent-repo-name\u003e@...` version\n- Currently supported numeric or numeric with preceding letter versions only\n- MacOS implementation works through installing `ggrep` through `homebrew`, hence it works slower than on Ubuntu\n\n## Changelog\n\n- **1.1.0**\n    - Removed `README.md` standard option\n    - Add labels to the version-containing files\n    - Add `readme-badge` check\n    - Add `readme-changelog` check\n- **1.2.0**\n    - Add `package-lock.json` file support\n    - Add `readme-action` label support\n    - Fix digit regexp for the `readme-badge` label\n- **1.2.1**\n    - Fix regexp for the old version in the `readme-changelog` version\n    - Fix `change-only-for` array-split\n    - Change Git current branch retrieval to support Git version \u003c 2.22\n    - Fix label for the `readme-action` label\n- **1.3.0**\n    - Rename `readme-badge` option to `readme-version-badge`\n    - Add `readme-nexus-badge` option\n    - Add support of coma/space separated string array as an input argument\n    - Modified info messages\n    - Move aliases initialization to a separate file\n    - Move arguments parsing to a separate file\n- **1.3.1**\n    - Add list of failed files to the log\n    - Add successful message to the log\n- **1.3.2**\n    - Fix failed files logging\n    - Add missing files log message\n- **1.3.3** - Fix regexp to work with the preceding letter\n- **1.4.0**\n    - Add support for more than 3 version parts\n    - Now parsing different delimiters in a single version\n- **1.5.1** - Added `src/check.sh` as a runnable program \n\n## Usage\n\nMake sure to check out first since the script needs some files to check.   \ncheck-version-sh action will exit with success code `0` if check\n\n- for all specified (with optional `check-only-for` option) files were successful\n- for at least one present (from all supported version files) file was successful\n\nAnd with fail code `1` if check\n\n- for any specified files (with optional `check-only-for` option) fails\n- for at least one present (from all supported version files) file fails\n- if none of the files (from all supported version files) is present in the `git diff`\n\n### YAML Parameters\n\nSee [action.yml](action.yml) or [info.sh](src/check-version/info.sh).\n\n- `log-level` - logging level that will be used by the shell script\n    - TRACE\n    - DEBUG\n    - INFO\n    - WARN\n    - ERROR\n- `check-only-for` - a list of coma or space separated labels to check for    \n  (since GitHub Actions does not support yaml array inputs yet)\n\n### Sample Configuration\n\n```yaml\njobs:\n  # ...\n  steps:\n    # ...\n    - name: Check Version Changes\n      uses: sivkovych/check-version-sh@v1.5.1\n      with:\n        log-level: \"INFO\"\n        check-only-for: \"pom.xml, package.json, readme-version-badge\"\n    # ...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsivkovych%2Fcheck-version-sh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsivkovych%2Fcheck-version-sh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsivkovych%2Fcheck-version-sh/lists"}