diff --git a/action.yml b/action.yml index eac3ba5..f449b04 100644 --- a/action.yml +++ b/action.yml @@ -75,6 +75,15 @@ inputs: gitops-prod: description: 'Files which should be updated by the GitHub Action for PROD' required: false + upwind-client-id: + description: 'Upwind Client ID' + required: false + upwind-organization-id: + description: 'Upwind Organization ID' + required: false + upwind-client-secret: + description: 'Upwind Client Secret' + required: false working-directory: description: 'The path relative to the repo root dir in which the GitOps action should be executed.' required: false @@ -300,6 +309,19 @@ runs: done <<< "${{ inputs.gitops-dev }}" fi + - name: Emit Image Build Event to Upwind.io + env: + UPWIND_CLIENT_SECRET: ${{ inputs.upwind-client-secret }} + if: "${{ inputs.upwind-client-id != '' && env.UPWIND_CLIENT_SECRET != '' && inputs.upwind-organization-id != '' }}" + uses: upwindsecurity/create-image-build-event-action@v2 + continue-on-error: true + with: + image: ${{ inputs.docker-image }} + image_sha: ${{ steps.docker_build.outputs.digest || steps.docker_retag.outputs.digest }} + upwind_client_id: ${{ inputs.upwind-client-id }} + upwind_client_secret: ${{ env.UPWIND_CLIENT_SECRET }} + upwind_organization_id: ${{ inputs.upwind-organization-id }} + branding: icon: 'git-merge' color: 'blue'