diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml new file mode 100644 index 00000000..76f496e2 --- /dev/null +++ b/.github/workflows/build-image.yaml @@ -0,0 +1,34 @@ +name: build-image + +on: + workflow_dispatch: + inputs: + CLIENT: + required: false + type: string + default: "test" + IMAGE_TAG: + required: true + type: string + CO_SIGN: + type: boolean + required: false + default: false + PLATFORMS: + type: boolean + required: false + default: false +jobs: + publish-image: + permissions: + id-token: write + packages: write + contents: read + uses: ./.github/workflows/d-publish-image.yaml + with: + client: ${{ inputs.CLIENT }} + image_name: "quay.io/${{ github.repository_owner }}/kubescape" + image_tag: ${{ inputs.IMAGE_TAG }} + support_platforms: ${{ inputs.PLATFORMS }} + cosign: ${{ inputs.CO_SIGN }} + secrets: inherit \ No newline at end of file diff --git a/core/pkg/resultshandling/reporter/v2/reporteventreceiver.go b/core/pkg/resultshandling/reporter/v2/reporteventreceiver.go index 427cac89..a7823c7f 100644 --- a/core/pkg/resultshandling/reporter/v2/reporteventreceiver.go +++ b/core/pkg/resultshandling/reporter/v2/reporteventreceiver.go @@ -64,6 +64,7 @@ func (report *ReportEventReceiver) Submit(ctx context.Context, opaSessionObj *ca ctx, span := otel.Tracer("").Start(ctx, "reportEventReceiver.Submit") defer span.End() report.reportTime = time.Now().UTC() + if report.customerGUID == "" { logger.L().Ctx(ctx).Error("failed to publish results. Reason: Unknown account ID. Run kubescape with the '--account ' flag. Contact ARMO team for more details") return nil