upvote
I was not aware, but after reading the issue linked above, Trusted Publishing (or more accurately, short lived token credentials) already work for GitHub Actions workflows.

They link this issue in the docker-action repo: https://github.com/docker/login-action/pull/1048, merged last July.

reply