{"id":37071057,"url":"https://github.com/mobilityhouse/resin-release-tool","last_synced_at":"2026-01-14T08:17:50.131Z","repository":{"id":39824046,"uuid":"145413819","full_name":"mobilityhouse/resin-release-tool","owner":"mobilityhouse","description":"Release tool to have canary in resin.io","archived":false,"fork":false,"pushed_at":"2024-10-09T10:48:35.000Z","size":171,"stargazers_count":5,"open_issues_count":3,"forks_count":0,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-09-25T00:56:27.030Z","etag":null,"topics":["cli","resin-io","team-grid"],"latest_commit_sha":null,"homepage":"","language":"Python","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/mobilityhouse.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null}},"created_at":"2018-08-20T12:19:17.000Z","updated_at":"2024-06-24T11:21:44.000Z","dependencies_parsed_at":"2023-09-23T10:42:38.005Z","dependency_job_id":"86437666-de61-47f4-9bf7-5adc2b00a37e","html_url":"https://github.com/mobilityhouse/resin-release-tool","commit_stats":{"total_commits":53,"total_committers":7,"mean_commits":7.571428571428571,"dds":0.5849056603773585,"last_synced_commit":"2c260cd12c13e97d9e01eeed7dde9ea0810f235e"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/mobilityhouse/resin-release-tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobilityhouse%2Fresin-release-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobilityhouse%2Fresin-release-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobilityhouse%2Fresin-release-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobilityhouse%2Fresin-release-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mobilityhouse","download_url":"https://codeload.github.com/mobilityhouse/resin-release-tool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobilityhouse%2Fresin-release-tool/sbom","scorecard":{"id":655421,"data":{"date":"2025-08-11","repo":{"name":"github.com/mobilityhouse/resin-release-tool","commit":"2c260cd12c13e97d9e01eeed7dde9ea0810f235e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"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":"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":3,"reason":"Found 10/30 approved changesets -- score normalized to 3","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":"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/publish-to-pypi.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/mobilityhouse/resin-release-tool/publish-to-pypi.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-to-pypi.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/mobilityhouse/resin-release-tool/publish-to-pypi.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull-request.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/mobilityhouse/resin-release-tool/pull-request.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull-request.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/mobilityhouse/resin-release-tool/pull-request.yml/master?enable=pin","Info:   0 out of   4 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/publish-to-pypi.yml:1","Warn: no topLevel permission defined: .github/workflows/pull-request.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: 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":"Vulnerabilities","score":0,"reason":"24 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-48 / GHSA-fj7x-q9j7-g6q6","Warn: Project is vulnerable to: PYSEC-2024-230 / GHSA-248v-346w-9cwc","Warn: Project is vulnerable to: PYSEC-2023-135 / GHSA-xqr8-7jwr-rhp7","Warn: Project is vulnerable to: GHSA-3ww4-gg4f-jr7f","Warn: Project is vulnerable to: GHSA-5cpq-8wj7-hf2v","Warn: Project is vulnerable to: PYSEC-2024-225 / GHSA-6vqw-3v5j-54x4","Warn: Project is vulnerable to: GHSA-9v9h-cgj8-h64p","Warn: Project is vulnerable to: GHSA-h4gh-qq45-vh27","Warn: Project is vulnerable to: PYSEC-2023-254 / GHSA-jfhm-5ghh-2f97","Warn: Project is vulnerable to: GHSA-jm77-qphf-c4w8","Warn: Project is vulnerable to: GHSA-v8gr-m533-ghj9","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q","Warn: Project is vulnerable to: PYSEC-2025-49 / GHSA-5rjg-fvgr-3xxf","Warn: Project is vulnerable to: GHSA-cx63-2mw6-8hw5","Warn: Project is vulnerable to: GHSA-c8m8-j448-xjx7","Warn: Project is vulnerable to: PYSEC-2024-75 / GHSA-cf56-g6w6-pqq2","Warn: Project is vulnerable to: PYSEC-2023-224 / GHSA-xc8x-vp79-p3wm","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: PYSEC-2023-212 / GHSA-g4mx-q9vg-27p4","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v","Warn: Project is vulnerable to: PYSEC-2023-192 / GHSA-v845-jxx5-vc9f"],"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 10 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-21T14:31:27.845Z","repository_id":39824046,"created_at":"2025-08-21T14:31:27.846Z","updated_at":"2025-08-21T14:31:27.846Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["cli","resin-io","team-grid"],"created_at":"2026-01-14T08:17:49.640Z","updated_at":"2026-01-14T08:17:50.124Z","avatar_url":"https://github.com/mobilityhouse.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# resin-release-tool\nThis tool is to set releases to release groups and canaries in balenaCloud\n\n## Installation\n```\npip install resin-release-tool\n```\n\n## Build / Run locally\nYou need poetry to build the project https://python-poetry.org/\n```\npoetry install\npoetry build\npoetry run resin-release-tool\netc..\n```\n\n## Example usage\n\n### One canary group\n\nMark relevant devices with device tags with name \"release_group\" and value \"canary\" on balenaCloud.\n\n**To deploy a canary commit to them, run:**\n\n```bash\nresin-release-tool --app $APP_ID release -c $CANARY_COMMIT -g canary\n```\n\n**To deploy said commit to rest of devices, run:**\n\n```bash\nresin-release-tool --app $APP_ID release -c $NEW_RELEASE_COMMIT -a\nresin-release-tool --app $APP_ID unpin canary\n```\n\n(Note: Running the unpin command is not necessary if canary is already on `NEW_RELEASE_COMMIT`, however, without it, it won't track the latest app-wide release.)\n\n### Staggered release with multiple groups\n\nMark relevant devices with device tags with name `release_group` and value \"release_group_1/2/3\" on balenaCloud. If you want multiple release groups on one unit, you can do that by putting a comma between them in the `release_group` tag (for example: `canary,release_group_1`).\n\n**To deploy a commit to all devices in a staggered way:**\n\n(Add appropriate wait or checks between commands as appropriate for your usecase.)\n\n```bash\nresin-release-tool --app $APP_ID release -c $NEW_RELEASE_COMMIT -g release_group_1\nresin-release-tool --app $APP_ID release -c $NEW_RELEASE_COMMIT -g release_group_2\nresin-release-tool --app $APP_ID release -c $NEW_RELEASE_COMMIT -g release_group_3\n\nresin-release-tool --app $APP_ID release -c $NEW_RELEASE_COMMIT -a\nresin-release-tool --app $APP_ID unpin release_group_1 release_group_2 release_group_3\n```\n\n## Usage\n```\nUsage: resin-release-tool [OPTIONS] COMMAND [ARGS]...\n\n  You can set app and token as environment variables, using RESIN_APP and\n  RESIN_TOKEN\n\nOptions:\n  --token TOKEN  balenaCloud auth token  [required]\n  --app APP_ID   balenaCloud app ID  [required]\n  --help         Show this message and exit.\n\nCommands:\n  disable_rolling      Disables rolling releases in the application\n  enable_rolling       Enables rolling releases in the application\n  info                 Information of the application\n  release              Sets release commits for a given release or app\n  releases             Show successful releases of the application\n  show_devices_status  Show the status of the devices in the app\n  show_group_versions  Show the release versions of the devices in release groups\n  unpin                Unpins the version of one or more releases\n```\n\n# Development\n\n* The config file used by the balena_sdk is located at `$HOME/.balena/balena.cfg` \n\nTo format the code run:  \n\n    black \u003cpath to files \u003e\n\n\nTests can be run with \n\n    poetry run pytests\n\n\nTo debug/run commands in pycharm configure `resin_release_tool/cli.py` as the script path and the command you want to  run as parameter (credentials can be added as envs)\n\n## Publishing a new version\n### Pre-release steps\n\n* upddate the changelog and run\n    ```bash\n    make release \u003cversion\u003e  # e.g. v0.3.1\n    ```\n    to update the version in `pyproject.toml`\n\n### Release step\n* After merging these changes, tag the commit on master using `git tag \u003cversion\u003e`. This must match the new version in the `pyprojct.toml`\n* push the new tag to Github `git push origin \u003cversion\u003e` this should trigger the `publish-to-pypi` workflow\n\nNew versions are uploaded to https://pypi.org/project/resin-release-tool/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmobilityhouse%2Fresin-release-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmobilityhouse%2Fresin-release-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmobilityhouse%2Fresin-release-tool/lists"}