Visitar URL original
fix: replace docker/login-action with CLI login · sendgrid/sendgrid-java@2f8ed05 · GitHub
Skip to content

Commit 2f8ed05

Browse files
kridaiclaude
andcommitted
fix: replace docker/login-action with CLI login
The sendgrid org allowlist only permits GitHub-owned actions, so docker/login-action caused a startup_failure for the whole workflow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 4c96e26 commit 2f8ed05

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎.github/workflows/test-and-deploy.yml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ jobs:
2727
- name: Checkout sendgrid-java
2828
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2929

30+
# Plain CLI login: docker/login-action is not on this org's action allowlist.
3031
- name: Login to Docker Hub
3132
if: env.DOCKER_LOGIN
32-
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
33-
with:
34-
username: ${{ secrets.DOCKER_USERNAME }}
35-
password: ${{ secrets.DOCKER_AUTH_TOKEN }}
33+
env:
34+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
35+
DOCKER_AUTH_TOKEN: ${{ secrets.DOCKER_AUTH_TOKEN }}
36+
run: echo "$DOCKER_AUTH_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
3637

3738
- name: Install Docker Compose
3839
run: |

0 commit comments

Comments
 (0)