Skip to content

Commit

Permalink
Emit upwind.io build event in action
Browse files Browse the repository at this point in the history
  • Loading branch information
timdittler committed Oct 18, 2024
1 parent 075a944 commit 00ec75d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'

0 comments on commit 00ec75d

Please sign in to comment.