{"id":7743789,"name":"gitx-io/ssh-keygen-action","ecosystem":"actions","description":"To generate a SSH key","homepage":"","licenses":"apache-2.0","normalized_licenses":["Apache-2.0"],"repository_url":"https://github.com/gitx-io/ssh-keygen-action","keywords_array":["deploy-token","rsa","ssh-keygen","token"],"namespace":"gitx-io","versions_count":2,"first_release_published_at":"2022-08-18T02:30:33.000Z","latest_release_published_at":"2022-08-18T13:10:06.000Z","latest_release_number":"v2","last_synced_at":"2026-04-20T05:16:04.147Z","created_at":"2023-05-17T08:45:19.095Z","updated_at":"2026-04-20T05:16:04.148Z","registry_url":"https://github.com/gitx-io/ssh-keygen-action","install_command":null,"documentation_url":null,"metadata":{"name":"SSH key generation","description":"To generate a SSH key","inputs":{"comment":{"description":"A comment to help you to identify the key, e.g. your email etc.","required":false},"encryption":{"description":"Encryption type","required":true,"default":"rsa"},"bits":{"description":"Bits","required":true,"default":"4096"}},"runs":{"using":"composite","steps":[{"name":"Generate the key","run":"comment=${{ inputs.comment }}\n[ -z $comment ] \u0026\u0026 comment=\"${GITHUB_REPOSITORY}-$(date +%s)\"\necho $comment\nencryption=${{ inputs.encryption }}\nbits=${{ inputs.bits }}\nssh-keygen -t $encryption -b $bits -C $comment -f key -N \"\"\n","shell":"bash"},{"name":"Rename key files","run":"mv key private_key.txt\nmv key.pub public_key.txt\n","shell":"bash"},{"name":"Store the key files in the repo","run":"# git commit if there's any change\nif test -n \"$(git status --porcelain 2\u003e/dev/null)\"; then\n    git config --local user.email \"41898282+github-actions[bot]@users.noreply.github.com\"\n    git config --local user.name \"github-actions[bot]\"\n    git add .\n    git commit -m \"Update a new key\"\n    git push origin ${GITHUB_REF##*/}\nfi\n","shell":"bash"}]},"branding":{"icon":"lock","color":"green"},"default_branch":"master","path":null},"repo_metadata":{"uuid":"526020688","full_name":"gitx-io/ssh-keygen-action","owner":"gitx-io","description":"Generate a ssh key in GitHub Actions.","archived":false,"fork":false,"pushed_at":"2022-08-22T11:26:51.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-05-17T08:52:32.985Z","etag":null,"topics":["deploy-token","rsa","ssh-keygen","token"],"latest_commit_sha":null,"homepage":"","language":null,"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/gitx-io.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":"2022-08-18T02:06:47.000Z","updated_at":"2022-08-18T13:14:06.000Z","dependencies_parsed_at":"2023-01-04T12:37:27.526Z","dependency_job_id":null,"html_url":"https://github.com/gitx-io/ssh-keygen-action","commit_stats":null,"previous_names":[],"tags_count":2,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitx-io%2Fssh-keygen-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitx-io%2Fssh-keygen-action/tags","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitx-io%2Fssh-keygen-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitx-io","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":145456521,"owners_count":6248048,"icon_url":"https://github.com/github.png","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"},"owner_record":{"login":"gitx-io","name":"gitx-io","uuid":"57652893","kind":"organization","description":"Git toolboX","email":null,"website":"https://gitx.io","location":null,"twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/57652893?v=4","repositories_count":7,"last_synced_at":"2023-03-06T17:44:33.000Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/gitx-io","created_at":"2022-11-16T19:21:21.922Z","updated_at":"2023-03-06T17:44:33.018Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitx-io","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitx-io/repositories"},"tags":[{"name":"v2","sha":"acc7be48fad3464b0d6449acdd6d09639d5ecf0f","kind":"commit","published_at":"2022-08-18T13:10:06.000Z","download_url":"https://codeload.github.com/gitx-io/ssh-keygen-action/tar.gz/v2","html_url":"https://github.com/gitx-io/ssh-keygen-action/releases/tag/v2","dependencies_parsed_at":"2023-06-01T11:41:56.870Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitx-io%2Fssh-keygen-action/tags/v2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitx-io%2Fssh-keygen-action/tags/v2/manifests"},{"name":"v1","sha":"cb877b7a15c651687f3e79fcd2f6c263547b6580","kind":"commit","published_at":"2022-08-18T02:30:33.000Z","download_url":"https://codeload.github.com/gitx-io/ssh-keygen-action/tar.gz/v1","html_url":"https://github.com/gitx-io/ssh-keygen-action/releases/tag/v1","dependencies_parsed_at":"2023-06-01T11:41:57.018Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitx-io%2Fssh-keygen-action/tags/v1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitx-io%2Fssh-keygen-action/tags/v1/manifests"}]},"repo_metadata_updated_at":"2023-07-13T08:41:15.968Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":1,"rankings":{"downloads":null,"dependent_repos_count":24.775788306132153,"dependent_packages_count":0.0,"stargazers_count":48.363175408017746,"forks_count":35.17033750594201,"docker_downloads_count":null,"average":27.077325305022978},"purl":"pkg:githubactions/gitx-io/ssh-keygen-action","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/gitx-io/ssh-keygen-action","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/actions/gitx-io/ssh-keygen-action","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/gitx-io/ssh-keygen-action/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":null,"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/gitx-io%2Fssh-keygen-action/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/gitx-io%2Fssh-keygen-action/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/gitx-io%2Fssh-keygen-action/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/gitx-io%2Fssh-keygen-action/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/gitx-io%2Fssh-keygen-action/codemeta","maintainers":[]}