Skip to content

Commit ab64889

Browse files
jaci-nordicthst-nordic
authored andcommitted
ci: Fix - Secure github actions
The Docker login step was using username (NordicBuilder), which caused `permission_denied: write_package` errors when switching to GITHUB_TOKEN. Updated to use `${{ github.actor }}`, as required by GHCR authentication with GITHUB_TOKEN. Based on https://github.com/docker/login-action Signed-off-by: Jakub Ciesla <[email protected]>
1 parent 693f67d commit ab64889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
3131
with:
3232
registry: ghcr.io
33-
username: NordicBuilder
33+
username: ${{ github.actor }}
3434
password: ${{ secrets.GITHUB_TOKEN }}
3535

3636
- name: Check if Docker image exists

0 commit comments

Comments
 (0)