I’ve implemented a repository that automatically builds and publishes a Docker image using GitHub Workflows. The URL of this repository is:
While it works, I get the following warning:
WARNING! Your password will be stored unencrypted in /home/runner/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
The command I use to login is:
echo "$MY_PASSWORD" | docker login -u ${{ github.actor }} --password-stdin ghcr.io
What are my options to more securely log in?