Skip to content

Commit ec8214a

Browse files
authored
Fixed repository path in the GH workflow (#39)
1 parent bcb17d0 commit ec8214a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build-scan-and-push.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: docker/build-push-action@v3
2727
with:
2828
context: ${{ env.DOCKERFILE_CONTEXT }}
29-
tags: ${{ env.REGISTRY_HOST }}/${{ github.actor }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
29+
tags: ${{ env.REGISTRY_HOST }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
3030
load: true
3131

3232
- name: Setup cache
@@ -54,7 +54,7 @@ jobs:
5454
run: |
5555
${GITHUB_WORKSPACE}/cache/sysdig-cli-scanner \
5656
--apiurl ${SYSDIG_SECURE_ENDPOINT} \
57-
docker://${REGISTRY_HOST}/${{github.actor}}/${IMAGE_NAME}:${IMAGE_TAG} \
57+
docker://${REGISTRY_HOST}/${{github.repository_owner}}/${IMAGE_NAME}:${IMAGE_TAG} \
5858
--console-log \
5959
--dbpath=${GITHUB_WORKSPACE}/cache/db/ \
6060
--cachepath=${GITHUB_WORKSPACE}/cache/scanner-cache/
@@ -63,12 +63,12 @@ jobs:
6363
uses: docker/login-action@v2
6464
with:
6565
registry: ${{ env.REGISTRY_HOST }}
66-
username: ${{ github.actor }}
66+
username: ${{ github.repository_owner }}
6767
password: ${{ secrets.GITHUB_TOKEN }}
6868

6969
- name: Push
7070
uses: docker/build-push-action@v3
7171
with:
7272
context: ${{ env.DOCKERFILE_CONTEXT }}
7373
push: true
74-
tags: ${{ env.REGISTRY_HOST }}/${{ github.actor }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
74+
tags: ${{ env.REGISTRY_HOST }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}

0 commit comments

Comments
 (0)