{"id":36584985,"url":"https://github.com/bradschwartz/docker-credential-ghcr-login","last_synced_at":"2026-01-12T08:02:20.289Z","repository":{"id":144887134,"uuid":"614506752","full_name":"bradschwartz/docker-credential-ghcr-login","owner":"bradschwartz","description":"Automagically auth to GitHub Container Registry via docker credential helper","archived":false,"fork":false,"pushed_at":"2025-02-14T18:32:03.000Z","size":55,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-14T19:31:02.315Z","etag":null,"topics":["docker","github-container-registry"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bradschwartz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03-15T18:13:22.000Z","updated_at":"2025-02-14T18:32:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1c811fa-db1e-4489-b7f3-dc619f51d391","html_url":"https://github.com/bradschwartz/docker-credential-ghcr-login","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bradschwartz/docker-credential-ghcr-login","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradschwartz%2Fdocker-credential-ghcr-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradschwartz%2Fdocker-credential-ghcr-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradschwartz%2Fdocker-credential-ghcr-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradschwartz%2Fdocker-credential-ghcr-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradschwartz","download_url":"https://codeload.github.com/bradschwartz/docker-credential-ghcr-login/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradschwartz%2Fdocker-credential-ghcr-login/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28336966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"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":["docker","github-container-registry"],"created_at":"2026-01-12T08:01:39.801Z","updated_at":"2026-01-12T08:02:20.280Z","avatar_url":"https://github.com/bradschwartz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Container Registry Credential Helper\n\nA tool to manage auth with personal access tokens (PATs) for individuals\nto authenticate to GitHub Container Registry and push images. Probably\nnot meant for production workloads, as Actions will generate a short-lived\ntoken for each job.\n\nBased on similar tools like\n[docker/docker-credential-helpers](https://github.com/docker/docker-credential-helpers),\n[awslabs/amazon-ecr-credential-helper](https://github.com/awslabs/amazon-ecr-credential-helper), and\n[GoogleCloudPlatform/docker-credential-gcr](https://github.com/GoogleCloudPlatform/docker-credential-gcr).\n\n# How it Works\n\nUses your GitHub username/password to create a personal access token. Uses the [`gh`](https://github.com/cli/cli)\nutilities to ensure the PAT has `write:packages` access. If it does not, it will\nrun the web-auth flow from the CLI and overwrite the existing token.\n\nOnce that is finished, we just rely on the `gh` configuration files as the source\nof truth for a username and token, and provide that to the docker daemon\nwhen requested.\n\n# Configuration\n\nAdd this as a `credsHelper` in your Docker CLI Config:\n\n```json\n// $HOME/.docker/config.json\n{\n  \"credsHelper\": {\n    \"ghcr.io\": \"ghcr-login\"\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradschwartz%2Fdocker-credential-ghcr-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradschwartz%2Fdocker-credential-ghcr-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradschwartz%2Fdocker-credential-ghcr-login/lists"}