@@ -44,49 +44,49 @@ jobs:
4444 severity : ' CRITICAL,HIGH'
4545
4646 - name : Retag new image with latest tag so we can push the scanned version
47- run : docker image tag php-docker-base:trivytemp ghcr.io/linkorb /${{ env.CI_REPOSITORY_NAME }}:latest
47+ run : docker image tag php-docker-base:trivytemp ghcr.io/${{ github.repository_owner }} /${{ env.CI_REPOSITORY_NAME }}:latest
4848
4949 - name : Push with latest tag
50- run : docker push ghcr.io/linkorb /${{ env.CI_REPOSITORY_NAME }}:latest
50+ run : docker push ghcr.io/${{ github.repository_owner }} /${{ env.CI_REPOSITORY_NAME }}:latest
5151 - name : Retag new image with commit hash
52- run : docker image tag ghcr.io/linkorb /${{ env.CI_REPOSITORY_NAME }}:latest ghcr.io/linkorb /${{ env.CI_REPOSITORY_NAME }}:$(echo ${GITHUB_SHA} | cut -c1-8)
52+ run : docker image tag ghcr.io/${{ github.repository_owner }} /${{ env.CI_REPOSITORY_NAME }}:latest ghcr.io/${{ github.repository_owner }} /${{ env.CI_REPOSITORY_NAME }}:$(echo ${GITHUB_SHA} | cut -c1-8)
5353 - name : Push with commit hash tag
54- run : docker push ghcr.io/linkorb /${{ env.CI_REPOSITORY_NAME }}:$(echo ${GITHUB_SHA} | cut -c1-8)
54+ run : docker push ghcr.io/${{ github.repository_owner }} /${{ env.CI_REPOSITORY_NAME }}:$(echo ${GITHUB_SHA} | cut -c1-8)
5555 - name : Retag new image with php7 tag
56- run : docker image tag ghcr.io/linkorb /${{ env.CI_REPOSITORY_NAME }}:latest ghcr.io/linkorb /${{ env.CI_REPOSITORY_NAME }}:php7
56+ run : docker image tag ghcr.io/${{ github.repository_owner }} /${{ env.CI_REPOSITORY_NAME }}:latest ghcr.io/${{ github.repository_owner }} /${{ env.CI_REPOSITORY_NAME }}:php7
5757 - name : Push with commit php7 tag
58- run : docker push ghcr.io/linkorb /${{ env.CI_REPOSITORY_NAME }}:php7
58+ run : docker push ghcr.io/${{ github.repository_owner }} /${{ env.CI_REPOSITORY_NAME }}:php7
5959
6060 # php7-review
6161 - name : Build the PHP7 review container image
62- run : docker build . --tag ghcr.io/linkorb /${{ env.CI_REPOSITORY_NAME }}:php7-review --file Dockerfile.php7-review
62+ run : docker build . --tag ghcr.io/${{ github.repository_owner }} /${{ env.CI_REPOSITORY_NAME }}:php7-review --file Dockerfile.php7-review
6363 - name : Push with commit php7-review tag
64- run : docker push ghcr.io/linkorb /${{ env.CI_REPOSITORY_NAME }}:php7-review
64+ run : docker push ghcr.io/${{ github.repository_owner }} /${{ env.CI_REPOSITORY_NAME }}:php7-review
6565
6666 # php8
6767 - name : Build the container image
68- run : docker build . --tag ghcr.io/linkorb /${{ env.CI_REPOSITORY_NAME }}:php8 --file Dockerfile.php8
68+ run : docker build . --tag ghcr.io/${{ github.repository_owner }} /${{ env.CI_REPOSITORY_NAME }}:php8 --file Dockerfile.php8
6969 - name : Run Trivy vulnerability scanner
7070 uses : aquasecurity/trivy-action@master
7171 with :
72- image-ref : ghcr.io/linkorb /${{ env.CI_REPOSITORY_NAME }}:php8
72+ image-ref : ghcr.io/${{ github.repository_owner }} /${{ env.CI_REPOSITORY_NAME }}:php8
7373 format : ' table'
7474 exit-code : ' 1'
7575 ignore-unfixed : true
7676 vuln-type : ' os,library'
7777 severity : ' CRITICAL,HIGH'
7878 - name : Push with php8 tag
79- run : docker push ghcr.io/linkorb /${{ env.CI_REPOSITORY_NAME }}:php8
79+ run : docker push ghcr.io/${{ github.repository_owner }} /${{ env.CI_REPOSITORY_NAME }}:php8
8080 - name : Retag new image with commit hash
81- run : docker image tag ghcr.io/linkorb /${{ env.CI_REPOSITORY_NAME }}:php8 ghcr.io/linkorb /${{ env.CI_REPOSITORY_NAME }}:php8-$(echo ${GITHUB_SHA} | cut -c1-8)
81+ run : docker image tag ghcr.io/${{ github.repository_owner }} /${{ env.CI_REPOSITORY_NAME }}:php8 ghcr.io/${{ github.repository_owner }} /${{ env.CI_REPOSITORY_NAME }}:php8-$(echo ${GITHUB_SHA} | cut -c1-8)
8282 - name : Push with commit hash tag and php8 tag
83- run : docker push ghcr.io/linkorb /${{ env.CI_REPOSITORY_NAME }}:php8-$(echo ${GITHUB_SHA} | cut -c1-8)
83+ run : docker push ghcr.io/${{ github.repository_owner }} /${{ env.CI_REPOSITORY_NAME }}:php8-$(echo ${GITHUB_SHA} | cut -c1-8)
8484
8585 # php8-review
8686 - name : Build the PHP8 review container image
87- run : docker build . --tag ghcr.io/linkorb /${{ env.CI_REPOSITORY_NAME }}:php8-review --file Dockerfile.php8-review
87+ run : docker build . --tag ghcr.io/${{ github.repository_owner }} /${{ env.CI_REPOSITORY_NAME }}:php8-review --file Dockerfile.php8-review
8888 - name : Push with commit php8-review tag
89- run : docker push ghcr.io/linkorb /${{ env.CI_REPOSITORY_NAME }}:php8-review
89+ run : docker push ghcr.io/${{ github.repository_owner }} /${{ env.CI_REPOSITORY_NAME }}:php8-review
9090
9191 - name : Delete old versions of the package, keeping a few of the newest
9292 uses : actions/delete-package-versions@v4
0 commit comments