{"id":15768895,"url":"https://github.com/moritzheiber/ruby-versions-action","last_synced_at":"2026-02-06T19:32:21.844Z","repository":{"id":65316306,"uuid":"589495663","full_name":"moritzheiber/ruby-versions-action","owner":"moritzheiber","description":"Provides the latest available Ruby releases and their tarball checksums as output variables","archived":false,"fork":false,"pushed_at":"2025-08-12T14:43:36.000Z","size":40,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-18T23:55:38.240Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/moritzheiber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-01-16T08:59:39.000Z","updated_at":"2024-12-11T09:29:45.000Z","dependencies_parsed_at":"2024-05-29T11:32:31.241Z","dependency_job_id":"23771d61-0a3a-4fcb-9255-23fbd820e6d9","html_url":"https://github.com/moritzheiber/ruby-versions-action","commit_stats":{"total_commits":18,"total_committers":2,"mean_commits":9.0,"dds":"0.33333333333333337","last_synced_commit":"aa578bff78ea03e003a9a0d6fea9513b77be7cd0"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/moritzheiber/ruby-versions-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moritzheiber%2Fruby-versions-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moritzheiber%2Fruby-versions-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moritzheiber%2Fruby-versions-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moritzheiber%2Fruby-versions-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moritzheiber","download_url":"https://codeload.github.com/moritzheiber/ruby-versions-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moritzheiber%2Fruby-versions-action/sbom","scorecard":{"id":660208,"data":{"date":"2025-08-11","repo":{"name":"github.com/moritzheiber/ruby-versions-action","commit":"4949b1b5ee61a268544bf975aff0ddfe69555822"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"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":"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/build_test_release.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":"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":"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":"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.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md: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":"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/build_test_release.yaml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/moritzheiber/ruby-versions-action/build_test_release.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build_test_release.yaml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/moritzheiber/ruby-versions-action/build_test_release.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build_test_release.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/moritzheiber/ruby-versions-action/build_test_release.yaml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1","Warn: containerImage not pinned by hash: Dockerfile:2: pin your Docker image by updating alpine:3.21 to alpine:3.21@sha256:b6a6be0ff92ab6db8acd94f5d1b7a6c2f0f5d10ce3c24af348d333ac6da80685","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage 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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for 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/build_test_release.yaml:16"],"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 8 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-21T15:55:47.687Z","repository_id":65316306,"created_at":"2025-08-21T15:55:47.687Z","updated_at":"2025-08-21T15:55:47.687Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29174127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T19:28:14.811Z","status":"ssl_error","status_checked_at":"2026-02-06T19:28:13.420Z","response_time":59,"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":[],"created_at":"2024-10-04T14:01:24.481Z","updated_at":"2026-02-06T19:32:21.828Z","avatar_url":"https://github.com/moritzheiber.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby Versions docker action\n\nThis actions simply provides all available stable versions of the Ruby interpreter as a JSON-structure output variable.\n\n## Example usage\n\n```yaml\n- name: Fetch Ruby versions\n  id: ruby-versions\n  uses: moritzheiber/ruby-versions-action@v1\n- name: Display latest versions\n- run: echo ${{ step.ruby-versions.outputs.versions }}\n```\n\nA more elaborate version would be to build [a matrix](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix) for other jobs out of the outputs:\n\n```yaml\n# [...]\njobs:\n  gather-versions:\n    runs-on: ubuntu-latest\n    outputs:\n      versions: ${{ steps.ruby-versions.outputs.versions }}\n      metadata: ${{ steps.ruby-versions.outputs.metadata }}\n    steps:\n      - uses: moritzheiber/ruby-versions-action@v1\n        with:\n          version_name: ruby\n          checksum_name: ruby_checksum\n        name: Fetch latest Ruby versions\n        id: ruby-versions\n  use-versions:\n    runs-on: ubuntu-latest\n    needs: [\"gather-versions\"]\n    strategy:\n      matrix:\n        ruby: ${{ fromJSON(needs.gather-versions.outputs.versions) }}\n        include: ${{ fromJSON(needs.gather-versions.outputs.metadata) }}\n    steps:\n      - run: echo \"My version is ${{ matrix.ruby }} and my checksum is ${{ matrix.ruby_checksum }}\"\n```\n\nThe [`include`](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategymatrixinclude) statement in the `matrix` call adds the `ruby_checksum` parameter to every available version in the `ruby` array when the matrix is expanded. For this to work one of the `matrix` parameters are passed as `version_name` and `checksum_name` to the initial step where the versions are gathered, so that the `matrix` expansion on the `ruby` keyword array (containing the available versions, i.e. number of `matrix` jobs that are run) matches the index in the `include` part. The expanded `matrix` looks like this:\n\n```yaml\n# [...]\n  ruby: [\"3.0.5\",\"3.1.3\",\"3.2.0\"]\n  include:\n    - ruby: \"3.0.5\"\n      ruby_checksum: \"[...]\"\n      url: \"[...]\"\n    - ruby: \"3.1.3\"\n      ruby_checksum: \"[...]\"\n      url: \"[...]\"\n    - ruby: \"3.2.0\"\n      ruby_checksum: \"[...]\"\n      url: \"[...]\"\n```\n\n*Note: the `url` field isn't used in our example, but you could use it if you wanted to.*\n\n## Inputs\n\n### `version_name`\n\nThe name for the `version` key in the `metadata` output. The default is `version`:\n\n```yaml\n- id: ruby-versions\n  uses: moritzheiber/ruby-versions-action@v1\n  with:\n    version_name: release\n- name: Display latest versions\n- run: echo ${{ step.ruby-versions.outputs.versions }}\n# [{\"url\":\"https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.5.tar.gz\",\"release\":\"3.0.5\",\"checksum\":\"9afc6380a027a4fe1ae1a3e2eccb6b497b9c5ac0631c12ca56f9b7beb4848776\"}[...]\n```\n\n### `url_name`\n\nThe name for the `url` key in the `metadata` output. The default is `url`:\n\n```yaml\n- id: ruby-versions\n  uses: moritzheiber/ruby-versions-action@v1\n  with:\n    url_name: download_url\n- name: Display latest versions\n- run: echo ${{ step.ruby-versions.outputs.versions }}\n# [{\"version\":\"3.0.5\",\"download_url\":\"https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.5.tar.gz\",\"checksum\":\"9afc6380a027a4fe1ae1a3e2eccb6b497b9c5ac0631c12ca56f9b7beb4848776\"}[...]\n```\n\n### `checksum_name`\n\nThe name for the `checksum` key in the `metadata` output. The default is `checksum`:\n\n```yaml\n- id: ruby-versions\n  uses: moritzheiber/ruby-versions-action@v1\n  with:\n    checksum_name: sha256sum\n- name: Display latest versions\n- run: echo ${{ step.ruby-versions.outputs.versions }}\n# [{\"url\":\"https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.5.tar.gz\",\"version\":\"3.0.5\",\"sha256sum\":\"9afc6380a027a4fe1ae1a3e2eccb6b497b9c5ac0631c12ca56f9b7beb4848776\"}[...]\n```\n\n## Outputs\n\n### `versions`\n\nThe available stable Ruby interpreter versions in a JSON array:\n\n```json\n[\"3.0.5\",\"3.1.3\",\"3.2.0\"]\n```\n\n### `metadata`\n\nAn object containing not just the versions themselves but also other useful metadata, like URL for the `tar.gz` tarball file [on the official Ruby download server](https://cache.ruby-lang.org/pub/ruby/) and `sha256` checksum for each release:\n\n```json\n[\n  {\n    \"url\": \"https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.5.tar.gz\",\n    \"version\": \"3.0.5\",\n    \"checksum\": \"9afc6380a027a4fe1ae1a3e2eccb6b497b9c5ac0631c12ca56f9b7beb4848776\"\n  },\n  {\n    \"url\": \"https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.3.tar.gz\",\n    \"version\": \"3.1.3\",\n    \"checksum\": \"5ea498a35f4cd15875200a52dde42b6eb179e1264e17d78732c3a57cd1c6ab9e\"\n  },\n  {\n    \"url\": \"https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.0.tar.gz\",\n    \"version\": \"3.2.0\",\n    \"checksum\": \"daaa78e1360b2783f98deeceb677ad900f3a36c0ffa6e2b6b19090be77abc272\"\n  }\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoritzheiber%2Fruby-versions-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoritzheiber%2Fruby-versions-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoritzheiber%2Fruby-versions-action/lists"}