-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix: authenticate Docker Hub pulls to prevent anonymous rate limits #3741 #3744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -88,6 +88,12 @@ jobs: | |
| username: ${{ github.repository_owner }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: 🐋 Login to Docker Hub | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
Comment on lines
+91
to
+95
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Docker Hub secrets not declared or passed for The new Docker Hub login step uses Comparison with correctly configured workflow
Prompt for agentsWas this helpful? React with 👍 or 👎 to provide feedback. |
||
|
|
||
| - name: 🐳 Build image and push to GitHub Container Registry | ||
| id: build_push | ||
| uses: depot/build-push-action@5f3b3c2e5a00f0093de47f657aeaefcedff27d18 # v1.17.0 | ||
|
|
@@ -117,4 +123,4 @@ jobs: | |
| with: | ||
| subject-name: ghcr.io/triggerdotdev/trigger.dev | ||
| subject-digest: ${{ steps.build_push.outputs.digest }} | ||
| push-to-registry: true | ||
| push-to-registry: true | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -81,10 +81,16 @@ jobs: | |||||
| username: ${{ github.repository_owner }} | ||||||
| password: ${{ secrets.GITHUB_TOKEN }} | ||||||
|
|
||||||
| - name: 🐋 Login to Docker Hub | ||||||
| uses: docker/login-action@v3 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Docker Hub login in publish-worker-v4 uses unpinned mutable tag Same issue as in
Suggested change
Was this helpful? React with 👍 or 👎 to provide feedback. |
||||||
| with: | ||||||
| username: ${{ secrets.DOCKERHUB_USERNAME }} | ||||||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||||||
|
Comment on lines
+84
to
+88
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Docker Hub secrets not declared or passed for Same issue as in Prompt for agentsWas this helpful? React with 👍 or 👎 to provide feedback. |
||||||
|
|
||||||
| - name: 🐳 Build image and push to GitHub Container Registry | ||||||
| uses: depot/build-push-action@5f3b3c2e5a00f0093de47f657aeaefcedff27d18 # v1.17.0 | ||||||
| with: | ||||||
| file: ./apps/${{ matrix.package }}/Containerfile | ||||||
| platforms: linux/amd64,linux/arm64 | ||||||
| tags: ${{ steps.set_tags.outputs.image_tags }} | ||||||
| push: true | ||||||
| push: true | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 Docker Hub login uses unpinned mutable tag
@v3instead of commit SHA, inconsistent with all other action referencesBoth new Docker Hub login steps use
docker/login-action@v3while every otherdocker/login-actionreference in the repository (8 occurrences across 7 workflow files) is pinned to a specific commit SHA:docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0. Using a mutable tag is a supply-chain security risk (the tag can be moved to point at malicious code) and is inconsistent with the established repository convention. Additionally,@v3is an older major version than thev4.1.0used everywhere else.Was this helpful? React with 👍 or 👎 to provide feedback.