-
Notifications
You must be signed in to change notification settings - Fork 17
40 lines (39 loc) · 1.38 KB
/
validate-image.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Validate Docker Image
on:
workflow_dispatch:
inputs:
failure_severity:
description: 'Must be one of CRITICAL, HIGH, MEDIUM'
required: false
default: 'HIGH'
fail_on_error:
description: 'If true, will fail the build if vulnerabilities are found'
required: true
type: boolean
default: true
schedule:
- cron: '0 20 * * *' #every day at 20:00
jobs:
build-publish-docker-default:
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-validate-image.yaml@main
with:
failure_severity: ${{ inputs.failure_severity || 'HIGH'}}
fail_on_error: ${{ inputs.fail_on_error || true }}
cloud_provider: 'default'
secrets: inherit
build-publish-docker-aws:
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-validate-image.yaml@main
with:
failure_severity: ${{ inputs.failure_severity || 'HIGH'}}
fail_on_error: ${{ inputs.fail_on_error || true }}
cloud_provider: 'aws'
secrets: inherit
needs: [build-publish-docker-default]
build-publish-docker-gcp:
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-validate-image.yaml@main
with:
failure_severity: ${{ inputs.failure_severity || 'HIGH'}}
fail_on_error: ${{ inputs.fail_on_error || true }}
cloud_provider: 'gcp'
secrets: inherit
needs: [build-publish-docker-aws]