-
Notifications
You must be signed in to change notification settings - Fork 0
fix: corregir comando docker login en deploy workflow #107
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 | ||
|---|---|---|---|---|
|
|
@@ -20,9 +20,7 @@ jobs: | |||
|
|
||||
| - name: Login to GHCR | ||||
| run: | | ||||
| echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io \ | ||||
| echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io \ | ||||
| -u "${{ github.actor }}" --password-stdin | ||||
| echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin | ||||
| echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | ||||
|
||||
| echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin |
Copilot
AI
Dec 13, 2025
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.
There are two docker login commands executing sequentially, which is redundant. The second login (line 24) will overwrite the authentication from the first login (line 23). Only one docker login command should be used.
Additionally, line 24 has an inconsistency: the variable ${{ github.actor }} is not quoted, unlike line 23 where it's properly quoted as "${{ github.actor }}". This could potentially cause issues if the username contains special characters.
Recommend keeping only one of these login commands, preferably using GITHUB_TOKEN since it's the standard authentication method for GitHub Container Registry in GitHub Actions.
| echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin |
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.
The variable
${{ github.actor }}should be quoted for consistency and to prevent potential issues with special characters in usernames. This line uses an unquoted variable while line 23 properly quotes it as"${{ github.actor }}". Inconsistent quoting can lead to unexpected behavior in shell scripts.