Skip to content

Commit 4376f7a

Browse files
committed
Switch to v3 that supports editing descriptions with token and 2fa
Previously, the dockerhub description only was editable with user and password, but it was not working for accounts having 2FA enabled (like ours). Hence the job in master was always failing with 401. In July 2022 Github made the needed change to update dockerhub descriptions using PAT, that is independent of the 2FA sttings. Hence, switching to v3 of the action and moving to token.
1 parent 252d1bb commit 4376f7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test_buildx_and_publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ jobs:
9797
# Note that we only update the description with the master branch version.
9898
- name: Set Docker Hub description from README.md
9999
if: github.ref == 'refs/heads/master'
100-
uses: peter-evans/dockerhub-description@v2
100+
uses: peter-evans/dockerhub-description@v3
101101
with:
102102
username: ${{ secrets.DOCKERHUB_USERNAME }}
103-
password: ${{ secrets.DOCKERHUB_PASSWORD }}
103+
password: ${{ secrets.DOCKERHUB_TOKEN }}
104104
repository: ${{ env.DOCKERHUB_OWNER }}/${{ env.REPOSITORY }}

0 commit comments

Comments
 (0)