{"id":13503304,"url":"https://github.com/redhat-actions/podman-login","last_synced_at":"2025-05-07T10:34:18.533Z","repository":{"id":37860913,"uuid":"353292594","full_name":"redhat-actions/podman-login","owner":"redhat-actions","description":"GitHub Action to log into a container image registry. For use with podman, buildah, and skopeo.","archived":false,"fork":false,"pushed_at":"2024-08-07T09:35:04.000Z","size":1429,"stargazers_count":63,"open_issues_count":8,"forks_count":15,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-21T00:54:46.139Z","etag":null,"topics":["actions","buildah","containers","image-registry","login","podman","skopeo"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/podman-login","language":"TypeScript","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/redhat-actions.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2021-03-31T09:02:31.000Z","updated_at":"2025-04-20T05:17:35.000Z","dependencies_parsed_at":"2024-06-18T15:16:37.157Z","dependency_job_id":"d8361dfc-86f7-43b5-bcc5-c221840accc4","html_url":"https://github.com/redhat-actions/podman-login","commit_stats":{"total_commits":43,"total_committers":10,"mean_commits":4.3,"dds":"0.41860465116279066","last_synced_commit":"4934294ad0449894bcd1e9f191899d7292469603"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-actions%2Fpodman-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-actions%2Fpodman-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-actions%2Fpodman-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-actions%2Fpodman-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redhat-actions","download_url":"https://codeload.github.com/redhat-actions/podman-login/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252563632,"owners_count":21768495,"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","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":["actions","buildah","containers","image-registry","login","podman","skopeo"],"created_at":"2024-07-31T22:02:45.654Z","updated_at":"2025-05-07T10:34:18.461Z","avatar_url":"https://github.com/redhat-actions.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# podman-login\n[![CI checks](https://github.com/redhat-actions/podman-login/workflows/CI%20checks/badge.svg)](https://github.com/redhat-actions/podman-login/actions?query=workflow%3A%22CI+checks%22)\n[![Test Login and Pull](https://github.com/redhat-actions/podman-login/actions/workflows/example.yml/badge.svg)](https://github.com/redhat-actions/podman-login/actions/workflows/example.yml)\n[![Link checker](https://github.com/redhat-actions/podman-login/workflows/Link%20checker/badge.svg)](https://github.com/redhat-actions/podman-login/actions?query=workflow%3A%22Link+checker%22)\n\u003cbr\u003e\n\u003cbr\u003e\n[![tag badge](https://img.shields.io/github/v/tag/redhat-actions/podman-login)](https://github.com/redhat-actions/podman-login/tags)\n[![license badge](https://img.shields.io/github/license/redhat-actions/podman-login)](./LICENSE)\n[![size badge](https://img.shields.io/github/size/redhat-actions/podman-login/dist/index.js)](./dist)\n\nPodman Login is a GitHub Action to log in to a container image registry.\n\nAfter logging in, you can work with the registry as an authenticated user, performing actions such as pushing an image, or pulling a private image. On GitHub runners, the authentication will be deleted at the end of each job as the workspace is cleaned up.\n\nAlso see **[push-to-registry](https://github.com/redhat-actions/push-to-registry)** and **[buildah-build](https://github.com/redhat-actions/buildah-build)** for related actions that can make use of this authentication.\n\nThis action only runs on `Linux`, as it uses [podman](https://github.com/containers/Podman) to perform the log in. [GitHub's Ubuntu action runners](https://github.com/actions/virtual-environments#available-environments) come with Podman preinstalled. If you are not using those runners, you must first [install Podman](https://podman.io/getting-started/installation).\n\n\u003ca id=\"action-inputs\"\u003e\u003c/a\u003e\n\n## Action Inputs\n\n| Input Name | Description | Default |\n| ---------- | ----------- | ------- |\n| registry | Hostname/domain of the container image registry such as `quay.io`, `docker.io`. | **Must be provided**\n| username | Username to log in against the container image registry. | **Must be provided**\n| password | Password, encrypted password, or access token for `username`. | **Must be provided**\n| logout | By default, the action logs out of the container image registry at the end of the job (for self-hosted runners). Set this to `false` to disable this behaviour. | `true`\n| auth_file_path | Path of the authentication file, this will override the default auth file path in podman | Default set in podman |\n\n## Examples\n\nThe example below shows how the `podman-login` action can be used to log in to `quay.io` container image registry.\n\n```yaml\nname: Log in to Quay.io\non:\n  push:\n\nenv:\n  REGISTRY_USER: quayuser\n  IMAGE_REGISTRY: quay.io\n  REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}\n\njobs:\n  login:\n    name: Log in to image registry\n    runs-on: ubuntu-20.04\n    steps:\n\n      - name: Log in to Quay.io\n        uses: redhat-actions/podman-login@v1\n        with:\n          username: ${{ env.REGISTRY_USER }}\n          password: ${{ env.REGISTRY_PASSWORD }}\n          registry: ${{ env.IMAGE_REGISTRY }}\n\n  # Now you can push images, and pull private ones, from quay.io as 'quayuser'.\n```\n\nLogging into GitHub's container registry is just as easy:\n\n```yaml\nname: Log in to ghcr.io\non:\n  push:\n\nenv:\n  REGISTRY_USER: ${{ github.actor }}\n  REGISTRY_PASSWORD: ${{ github.token }}\n  IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}\n\njobs:\n  login:\n    name: Log in to GitHub Container Registry\n    runs-on: ubuntu-20.04\n    steps:\n      - name: Log in to ghcr.io\n        uses: redhat-actions/podman-login@v1\n        with:\n          username: ${{ env.REGISTRY_USER }}\n          password: ${{ env.REGISTRY_PASSWORD }}\n          registry: ${{ env.IMAGE_REGISTRY }}\n\n  # Now you can push images, and pull private ones, from ghcr.io.\n```\n\nIt is also possible to login to AWS ECR repositories:\n\n```yaml\nname: Log in to ECR\non:\n  push:\n\nenv:\n  REGISTRY_USER: ${{ secrets.AWS_ACCESS_KEY_ID }}\n  REGISTRY_PASSWORD: ${{ secrets.AWS_SECRET_ACCESS_KEY }}\n  IMAGE_REGISTRY: 123456789012.dkr.ecr.eu-west-1.amazonaws.com\n\njobs:\n  login:\n    name: Log in to AWS ECR Registry\n    runs-on: ubuntu-20.04\n    steps:\n      - name: Log in to AWS ECR\n        uses: redhat-actions/podman-login@v1\n        with:\n          username: ${{ env.REGISTRY_USER }}\n          password: ${{ env.REGISTRY_PASSWORD }}\n          registry: ${{ env.IMAGE_REGISTRY }}\n\n  # Now you can push images, and pull private ones, from ECR.\n```\n\nRefer to the [GitHub documentation](https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context) \u003c!-- markdown-link-check-disable-line --\u003e\nfor information about the `github` context object.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-actions%2Fpodman-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhat-actions%2Fpodman-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-actions%2Fpodman-login/lists"}