Skip to content

Commit af39b9e

Browse files
inahgaclaude
andauthored
Replace docker/login-action with inline docker login (#543)
Drop dependency on docker/login-action by replacing it with a simple docker login command. Just reduces our supply chain exposure a bit. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 28b1645 commit af39b9e

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,9 @@ jobs:
9090
- name: Set up Docker Buildx
9191
uses: docker/setup-buildx-action@v3
9292
- name: Login to GitHub Container Registry
93-
uses: docker/login-action@v3
94-
with:
95-
registry: ghcr.io
96-
username: ${{ github.actor }}
97-
password: ${{ secrets.GITHUB_TOKEN }}
93+
run: printenv GITHUB_TOKEN | docker login -u "$GITHUB_ACTOR" --password-stdin ghcr.io
94+
env:
95+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9896
- name: Build and push ${{ github.repository }}/${{ matrix.app }} for ${{ env.DOCKER_PLATFORMS }}
9997
uses: docker/build-push-action@v5
10098
with:
@@ -120,11 +118,9 @@ jobs:
120118
- windows-latest
121119
steps:
122120
- name: Login to GitHub Container Registry
123-
uses: docker/login-action@v3
124-
with:
125-
registry: ghcr.io
126-
username: ${{ github.actor }}
127-
password: ${{ secrets.GITHUB_TOKEN }}
121+
run: printenv GITHUB_TOKEN | docker login -u "$GITHUB_ACTOR" --password-stdin ghcr.io
122+
env:
123+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
128124
- name: Display pebble version in container image
129125
run: docker run ${{ env.DOCKER_IMAGE_BASENAME }}/pebble:latest -version
130126
create-release:

0 commit comments

Comments
 (0)