Skip to content

Commit 9f8497b

Browse files
authored
Merge pull request #104 from Staffbase/upwind-in-action
2 parents 075a944 + 00ec75d commit 9f8497b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

action.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@ inputs:
7575
gitops-prod:
7676
description: 'Files which should be updated by the GitHub Action for PROD'
7777
required: false
78+
upwind-client-id:
79+
description: 'Upwind Client ID'
80+
required: false
81+
upwind-organization-id:
82+
description: 'Upwind Organization ID'
83+
required: false
84+
upwind-client-secret:
85+
description: 'Upwind Client Secret'
86+
required: false
7887
working-directory:
7988
description: 'The path relative to the repo root dir in which the GitOps action should be executed.'
8089
required: false
@@ -300,6 +309,19 @@ runs:
300309
done <<< "${{ inputs.gitops-dev }}"
301310
fi
302311
312+
- name: Emit Image Build Event to Upwind.io
313+
env:
314+
UPWIND_CLIENT_SECRET: ${{ inputs.upwind-client-secret }}
315+
if: "${{ inputs.upwind-client-id != '' && env.UPWIND_CLIENT_SECRET != '' && inputs.upwind-organization-id != '' }}"
316+
uses: upwindsecurity/create-image-build-event-action@v2
317+
continue-on-error: true
318+
with:
319+
image: ${{ inputs.docker-image }}
320+
image_sha: ${{ steps.docker_build.outputs.digest || steps.docker_retag.outputs.digest }}
321+
upwind_client_id: ${{ inputs.upwind-client-id }}
322+
upwind_client_secret: ${{ env.UPWIND_CLIENT_SECRET }}
323+
upwind_organization_id: ${{ inputs.upwind-organization-id }}
324+
303325
branding:
304326
icon: 'git-merge'
305327
color: 'blue'

0 commit comments

Comments
 (0)