Skip to content

Commit 24c69c8

Browse files
johnnyhuyclaude
andcommitted
fix: GitHub Actions workflow permissions and Docker publishing
- Add explicit token parameter to release-please action to fix PR creation permissions - Add missing environment variables (GITHUB_ACTOR, CI) for Docker registry authentication - Add Docker buildx setup steps to release workflow - Move GITHUB_TOKEN to step-level environment in publish workflow 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent d019d56 commit 24c69c8

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/publish-latest-image.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ jobs:
2121
matrix:
2222
arch: [linux/amd64, linux/arm64]
2323

24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
2724
steps:
2825
- uses: actions/checkout@v4
2926
with:
@@ -32,4 +29,7 @@ jobs:
3229
- uses: docker/setup-buildx-action@v3
3330
- run: make publish-image
3431
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
GITHUB_ACTOR: ${{ github.actor }}
34+
CI: true
3535
DOCKER_DEFAULT_PLATFORM: ${{ matrix.arch }}

.github/workflows/release-please.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
id: release
2222
with:
2323
release-type: python
24+
token: ${{ secrets.GITHUB_TOKEN }}
2425

2526
publish-pypi:
2627
needs: release-please
@@ -44,9 +45,15 @@ jobs:
4445
arch: [linux/amd64, linux/arm64]
4546
steps:
4647
- uses: actions/checkout@v4
48+
with:
49+
fetch-tags: true
4750
- uses: asdf-vm/actions/install@v4
51+
- uses: docker/setup-qemu-action@v3
52+
- uses: docker/setup-buildx-action@v3
4853
- name: Publish Docker Image
4954
env:
5055
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
GITHUB_ACTOR: ${{ github.actor }}
57+
CI: true
5158
DOCKER_DEFAULT_PLATFORM: ${{ matrix.arch }}
5259
run: make publish-image

0 commit comments

Comments
 (0)