{"id":15048409,"url":"https://github.com/ernoaapa/fetch-ssh-keys","last_synced_at":"2025-10-05T12:33:06.681Z","repository":{"id":57527729,"uuid":"70990215","full_name":"ernoaapa/fetch-ssh-keys","owner":"ernoaapa","description":"CLI tool to fetch users SSH public keys","archived":false,"fork":false,"pushed_at":"2020-01-09T19:34:11.000Z","size":38,"stargazers_count":10,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T01:44:40.588Z","etag":null,"topics":["automation","cli","devops","github","golang","shell","ssh-keys"],"latest_commit_sha":null,"homepage":null,"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/ernoaapa.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":"2016-10-15T13:44:25.000Z","updated_at":"2024-07-30T13:55:46.000Z","dependencies_parsed_at":"2022-09-26T18:11:53.699Z","dependency_job_id":null,"html_url":"https://github.com/ernoaapa/fetch-ssh-keys","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/ernoaapa/fetch-ssh-keys","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernoaapa%2Ffetch-ssh-keys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernoaapa%2Ffetch-ssh-keys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernoaapa%2Ffetch-ssh-keys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernoaapa%2Ffetch-ssh-keys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ernoaapa","download_url":"https://codeload.github.com/ernoaapa/fetch-ssh-keys/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernoaapa%2Ffetch-ssh-keys/sbom","scorecard":{"id":381622,"data":{"date":"2025-08-11","repo":{"name":"github.com/ernoaapa/fetch-ssh-keys","commit":"545b2090a00aa92a74e1776c6c544cbe168ade70"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Code-Review","score":5,"reason":"Found 7/12 approved changesets -- score normalized to 5","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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"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":-1,"reason":"no workflows found","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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"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":"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.1.7 not signed: https://api.github.com/repos/ernoaapa/fetch-ssh-keys/releases/13989757","Warn: release artifact v1.1.6 not signed: https://api.github.com/repos/ernoaapa/fetch-ssh-keys/releases/11564147","Warn: release artifact v1.1.5 not signed: https://api.github.com/repos/ernoaapa/fetch-ssh-keys/releases/8941910","Warn: release artifact v1.1.4 not signed: https://api.github.com/repos/ernoaapa/fetch-ssh-keys/releases/8538839","Warn: release artifact v1.1.3 not signed: https://api.github.com/repos/ernoaapa/fetch-ssh-keys/releases/8107741","Warn: release artifact v1.1.7 does not have provenance: https://api.github.com/repos/ernoaapa/fetch-ssh-keys/releases/13989757","Warn: release artifact v1.1.6 does not have provenance: https://api.github.com/repos/ernoaapa/fetch-ssh-keys/releases/11564147","Warn: release artifact v1.1.5 does not have provenance: https://api.github.com/repos/ernoaapa/fetch-ssh-keys/releases/8941910","Warn: release artifact v1.1.4 does not have provenance: https://api.github.com/repos/ernoaapa/fetch-ssh-keys/releases/8538839","Warn: release artifact v1.1.3 does not have provenance: https://api.github.com/repos/ernoaapa/fetch-ssh-keys/releases/8107741"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"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-18T15:35:06.298Z","repository_id":57527729,"created_at":"2025-08-18T15:35:06.298Z","updated_at":"2025-08-18T15:35:06.298Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278457259,"owners_count":25989952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["automation","cli","devops","github","golang","shell","ssh-keys"],"created_at":"2024-09-24T21:11:29.463Z","updated_at":"2025-10-05T12:33:06.664Z","avatar_url":"https://github.com/ernoaapa.png","language":"Go","readme":"# fetch-ssh-keys\n\n[![Build Status](https://travis-ci.org/ernoaapa/fetch-ssh-keys.svg?branch=master)](https://travis-ci.org/ernoaapa/fetch-ssh-keys)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ernoaapa/fetch-ssh-keys)](https://goreportcard.com/report/github.com/ernoaapa/fetch-ssh-keys)\n\n`fetch-ssh-keys` is small shell command to get users public SSH keys from different cloud services like [GitHub](https://github.com).\n\n\u003e Note: Tested only on Linux and Mac. If you test on any other platform, please me know!\n\n## Usage\n```shell\nfetch-ssh-keys \u003csource name\u003e \u003cparameters\u003e \u003coutput file\u003e\n```\n\nFor example fetch users public SSH keys from GitHub `my-lovely-team` team in `my-awesome-company` organization and output in SSH authorized_keys format\n```shell\n# Fetch 'my-lovely-team' keys in 'my-awesome-company' organisation\nfetch-ssh-keys github --organization my-awesome-company --team my-lovely-team --token YOUR-TOKEN-HERE ./the-keys\n\n# Fetch 'ernoaapa' and 'arnested' public keys\nfetch-ssh-keys github --user ernoaapa --user arnested  --token YOUR-TOKEN-HERE ./the-keys\n\n# Fetch 'ernoaapa/fetch-ssh-keys' deploy keys (requires a Github token with the `repo` or `public_repo` scope)\nfetch-ssh-keys github --deploy-key ernoaapa/fetch-ssh-keys  --token YOUR-TOKEN-HERE ./the-keys\n```\n\nTool can be used for example to automatically update `.ssh/authorized_keys` file by giving path to `.ssh/authorized_keys` as last argument and adding the script to cron job.\n\n## Installation\n- Download binary from [releases](https://github.com/ernoaapa/fetch-ssh-keys/releases)\n- Give execution rights (`chmod +x fetch-ssh-keys`) and add it into your $PATH\n\n### Configuration\n| Parameter      | Required          | Description                                                                                               |\n|----------------|-------------------|-----------------------------------------------------------------------------------------------------------|\n| --format       | No (default ssh)  | Output format. Only ssh authorized_keys format supported for now                                          |\n| --file-mode    | No (default 0600) | File permissions when writing to a file                                                                   |\n| --comment      | No (default none) | Include COMMENT at top and bottom                                                                         |\n\n#### GitHub\n| Parameter      | Description                                                                                               |\n|----------------|-----------------------------------------------------------------------------------------------------------|\n| --organization | Name of the organization which members keys to pick                                                       |\n| --team         | Name or slug of the team which members keys to pick                                                               |\n| --user         | Name of the user which keys to pick                                                                       |\n| --deploy-key   | Name of the owner/repo which deploy keys to pick                                                          |\n| --token        | GitHub API token to use for communication. Without token you get only public members of the organization. |\n| --public-only  | Return only members what are publicly members of the given organization                                   |\n\nYou can give `--organisation` (optionally combined with `--team` flag) and/or one or more `--user` or `--deploy-key` flags.\n\nThe `--deploy-key` parameter requires a Github token with the `repo` or `public_repo` scope.\n\n## Development\n### Get dependencies\n```shell\ngo get ./...\n```\n\n### Run\n```shell\ngo run main.go github --output ssh\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fernoaapa%2Ffetch-ssh-keys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fernoaapa%2Ffetch-ssh-keys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fernoaapa%2Ffetch-ssh-keys/lists"}