Skip to content

[BUG] Removing registry credentials doesn't work #36

Open
@Ronan-WeScale

Description

@Ronan-WeScale

Version

Describe the bug

Related to the issue #18 , I create an empty config.json file with :
echo "{ \"auths\": {} }" > $HOME/.docker/config.json

The logout step "Removing registry credentials from" doesn't work, my config file always contain the credential but the logout action is OK.

Steps to reproduce, workflow links, screenshots

      - name: Log in to docker.io
        uses: redhat-actions/podman-login@v1
        with:
          username: ${{ env.REGISTRY_USER }}
          password: ${{ env.REGISTRY_PASSWORD }}
          registry: ${{ env.IMAGE_REGISTRY }}

More test

Also I tested with sample config with the same result :

echo "{ \"auths\": { \"dummy\": {} } }" > $HOME/.docker/config.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      [BUG] Removing registry credentials doesn't work · Issue #36 · redhat-actions/podman-login