From e899252539863aa678a4546db1ddee4a15fd10f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AB=E3=82=B3=E3=83=A1?= <146040408+Marukome0743@users.noreply.github.com> Date: Mon, 20 Nov 2023 09:32:13 +0900 Subject: [PATCH 1/3] Update push-dockerhub.yml --- .github/workflows/push-dockerhub.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push-dockerhub.yml b/.github/workflows/push-dockerhub.yml index 9110d1e..0fe39ea 100644 --- a/.github/workflows/push-dockerhub.yml +++ b/.github/workflows/push-dockerhub.yml @@ -38,7 +38,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Login to Docker Hub - if: ${{ secrets.DOCKER_USER != "" && secrets.DOCKER_PAT != "" }} + if: ${{ github.repository_owner == 'OpenUp-LabTakizawa' }} uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USER }} @@ -62,7 +62,7 @@ jobs: provenance: false - name: Docker Scout - if: ${{ github.event_name == 'pull_request' && secrets.DOCKER_USER != "" && secrets.DOCKER_PAT != "" }} + if: ${{ github.event_name == 'pull_request' && github.repository_owner == 'OpenUp-LabTakizawa' }} uses: docker/scout-action@v1 with: command: cves,recommendations,compare From 683e0bad6db641b6312c1bdac604aebdf76e0a57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AB=E3=82=B3=E3=83=A1?= <146040408+Marukome0743@users.noreply.github.com> Date: Mon, 20 Nov 2023 10:12:33 +0900 Subject: [PATCH 2/3] Update push-dockerhub.yml --- .github/workflows/push-dockerhub.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/push-dockerhub.yml b/.github/workflows/push-dockerhub.yml index 0fe39ea..59cd340 100644 --- a/.github/workflows/push-dockerhub.yml +++ b/.github/workflows/push-dockerhub.yml @@ -29,6 +29,10 @@ jobs: build: name: push runs-on: ubuntu-latest + permissions: + contents: read + packages: write + pull-requests: write steps: - name: Checkout From 98f8cb7f89dba13fa6d5186b9842b2a45eecae84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AB=E3=82=B3=E3=83=A1?= <146040408+Marukome0743@users.noreply.github.com> Date: Mon, 20 Nov 2023 10:23:10 +0900 Subject: [PATCH 3/3] Update push-dockerhub.yml --- .github/workflows/push-dockerhub.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/push-dockerhub.yml b/.github/workflows/push-dockerhub.yml index 59cd340..0fe39ea 100644 --- a/.github/workflows/push-dockerhub.yml +++ b/.github/workflows/push-dockerhub.yml @@ -29,10 +29,6 @@ jobs: build: name: push runs-on: ubuntu-latest - permissions: - contents: read - packages: write - pull-requests: write steps: - name: Checkout