{"id":37100790,"url":"https://github.com/cappyzawa/romver-resource","last_synced_at":"2026-01-14T12:16:08.200Z","repository":{"id":44712093,"uuid":"195450659","full_name":"cappyzawa/romver-resource","owner":"cappyzawa","description":"automated romantic version bumping","archived":true,"fork":false,"pushed_at":"2022-02-08T16:34:47.000Z","size":164,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-14T21:40:03.638Z","etag":null,"topics":["concourse","concourse-ci","concourse-ci-resource","go","versioning"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cappyzawa.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":"2019-07-05T18:12:05.000Z","updated_at":"2024-02-07T14:11:58.000Z","dependencies_parsed_at":"2022-09-04T08:00:47.935Z","dependency_job_id":null,"html_url":"https://github.com/cappyzawa/romver-resource","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/cappyzawa/romver-resource","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cappyzawa%2Fromver-resource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cappyzawa%2Fromver-resource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cappyzawa%2Fromver-resource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cappyzawa%2Fromver-resource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cappyzawa","download_url":"https://codeload.github.com/cappyzawa/romver-resource/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cappyzawa%2Fromver-resource/sbom","scorecard":{"id":265241,"data":{"date":"2025-08-11","repo":{"name":"github.com/cappyzawa/romver-resource","commit":"d7154c2d7830ad8700885922c7808afd941b2047"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"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":"Code-Review","score":0,"reason":"Found 0/12 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":"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":"project is archived","details":["Warn: Repository is archived."],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/release.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":"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: Apache License 2.0: 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'"],"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":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/cappyzawa/romver-resource/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/cappyzawa/romver-resource/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/cappyzawa/romver-resource/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/cappyzawa/romver-resource/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/cappyzawa/romver-resource/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/cappyzawa/romver-resource/release.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1","Warn: containerImage not pinned by hash: Dockerfile:13","Warn: containerImage not pinned by hash: Dockerfile:20","Warn: containerImage not pinned by hash: Dockerfile:32","Warn: goCommand not pinned by hash: .github/workflows/ci.yml:25","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   4 containerImage dependencies pinned","Info:   1 out of   2 goCommand 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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 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-17T11:51:51.536Z","repository_id":44712093,"created_at":"2025-08-17T11:51:51.536Z","updated_at":"2025-08-17T11:51:51.536Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["concourse","concourse-ci","concourse-ci-resource","go","versioning"],"created_at":"2026-01-14T12:16:07.230Z","updated_at":"2026-01-14T12:16:08.176Z","avatar_url":"https://github.com/cappyzawa.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# romver-resource\n[![GitHub release](https://img.shields.io/github/release/cappyzawa/romver-resource.svg)](https://github.com/cappyzawa/romver-resource/releases)\n[![GitHub](https://img.shields.io/github/license/cappyzawa/romver-resource.svg)](./LICENSE)\n\nA resource for managing a version number. Persists the version number in one of several backing stores.\n\nThis resource can manage major version(`X`) only.\n\nWhen version is bumped by this resouce, new version is `X+1`.\n\nThere is no concept of `major`, `minor` and `patch` like semanic versioning.\n\n## Source Configuration\n\n* `driver`: *Required.* The driver to use for tracking the\n  version. Determines where the version is stored. (`git` only, yet)\n\n* `initial_version`: *Optional.* The version number to use when\nbootstrapping, i.e. when there is not a version number present in the source.\n\n### `git` Driver\n\nThe `git` driver works by modifying a file in a repository with every bump. The\n`git` driver has the advantage of being able to do atomic updates.\n\n* `uri`: *Required.* The repository URL.\n\n* `branch`: *Required.* The branch the file lives on.\n\n* `file`: *Required.* The name of the file in the repository.\n\n* `private_key`: *Optional.* The SSH private key to use when pulling from/pushing to to the repository.\n\n* `username`: *Optional.* Username for HTTP(S) auth when pulling/pushing.\n   This is needed when only HTTP/HTTPS protocol for git is available (which does not support private key auth)\n   and auth is required.\n\n* `password`: *Optional.* Password for HTTP(S) auth when pulling/pushing.\n\n* `git_user`: *Optional.* The git identity to use when pushing to the\n  repository support RFC 5322 address of the form \"Gogh Fir \\\u003cgf@example.com\\\u003e\" or \"foo@example.com\".\n\n* `depth`: *Optional.* If a positive integer is given, shallow clone the repository using the --depth option.\n\n* `commit_message`: *Optional.* If specified overides the default commit message with the one provided. The user can use %version% and %file% to get them replaced automatically with the correct values.\n\n### Example\n\nWith the following resource configuration:\n\n``` yaml\nresource_types:\n- name: romver\n  type: registry-image\n  source:\n    repository: ghcr.io/cappyzawa/romver-resource\nresources:\n- name: version\n  type: romver\n  source:\n    driver: git\n    uri: git@github.com:concourse/concourse.git\n    branch: version\n    file: version\n    private_key: ((concourse-repo-private-key))\n```\n\nBumping with a `get` and then a `put`:\n\n``` yaml\nplan:\n- get: version\n  params: {bump: true}\n- task: a-thing-that-needs-a-version\n- put: version\n  params: {file: version/version}\n```\n\nOr, bumping with an atomic `put`:\n\n``` yaml\nplan:\n- put: version\n  params: {bump: true}\n- task: a-thing-that-needs-a-version\n```\n\n## Behavior\n\n### `check`: Report the current version number.\n\nDetects new versions by reading the file from the specified source. If the file is empty, it returns the `initial_version`. If the file is not empty, it returns the version specified in the file if it is equal to or greater than current version, otherwise it returns no versions.\n\n### `in`: Provide the version as a file, optionally bumping it.\n\nProvides the version number to the build as a `version` file in the destination.\n\n#### Parameters\n\n* `bump`: *Optional.* `true` or `false`\n\n### `out`: Set the version or bump the current one.\n\nGiven a file, use its contents to update the version. Or, given a bump\nstrategy, bump whatever the current version is. If there is no current version,\nthe bump will be based on `initial_version`.\n\nThe `file` parameter should be used if you have a particular version that you\nwant to force the current version to be. This can be used in combination with\n`in`, but it's probably better to use the `bump` params as they'll\nperform an atomic in-place bump if possible with the driver.\n\n#### Parameters\n\nOne of the following must be specified:\n\n* `file`: *Optional.* Path to a file containing the version number to set.\n\n* `bump`: *Optional.* `true` or `false`\n\nWhen `bump` used, the version bump will be applied atomically,\nif the driver supports it. That is, if we pull down version `N`. \n\n### Running the tests\n\n```\n$ ginkgo -r -v -skip=\"RomverResource\"\n```\n\n#### Integration tests\n\nThe integration requires two AWS S3 buckets, one without versioning and another\nwith. The `docker build` step requires setting `--build-args` so the\nintegration will run.\n\nYou will need:\n* Github uri and branch\n* Github username and password\n\nRun the tests with the following command, replacing each `build-arg` value with your own values:\n\n```sh\ndocker build . -t romver-resource \\\n    --build-arg ROMVER_TESTING_GITHUB_URI='https://github.com/your/repo' \\\n    --build-arg ROMVER_TESTING_GITHUB_BRANCH='branch' \\\n    --build-arg ROMVER_TESTING_GITHUB_USERNAME='github-username' \\\n    --build-arg ROMVER_TESTING_GITHUB_PASSWORD='github-password'\n```\n\n### Contributing\n\nPlease make all pull requests to the `master` branch and ensure tests pass\nlocally.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcappyzawa%2Fromver-resource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcappyzawa%2Fromver-resource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcappyzawa%2Fromver-resource/lists"}