diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a043f785..ea099541 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -85,7 +85,7 @@ jobs: name: Build docker container, tag and upload to registry needs: build runs-on: ubuntu-latest - if: ${{ secrets.QUAYIO_REGISTRY_PASSWORD != "" && secrets.QUAYIO_REGISTRY_USERNAME != "" }} # build docker only if quay credentials are set + if: ${{ github.repository == 'armosec/kubescape' }} # TODO permissions: id-token: write packages: write diff --git a/.github/workflows/build_dev.yaml b/.github/workflows/build_dev.yaml index 8842b2ca..91ad1742 100644 --- a/.github/workflows/build_dev.yaml +++ b/.github/workflows/build_dev.yaml @@ -63,7 +63,7 @@ jobs: build-docker: name: Build docker container, tag and upload to registry needs: build - if: ${{ secrets.QUAYIO_REGISTRY_PASSWORD != "" && secrets.QUAYIO_REGISTRY_USERNAME != "" }} # build docker only if quay credentials are set + if: ${{ github.repository == 'armosec/kubescape' }} # TODO runs-on: ubuntu-latest permissions: id-token: write