Skip to content

Commit 2ae5756

Browse files
committed
Add vulnerability_failure_severity inputs
1 parent d786c08 commit 2ae5756

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build-and-publish.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,17 @@ on:
1313
publish_vulnerabilities:
1414
type: string
1515
default: true
16+
vulnerability_failure_severity:
17+
description: The severity to fail the workflow if such vulnerability is detected. DO NOT override it unless a Jira ticket is raised. Must be one of ['CRITICAL', 'CRITICAL,HIGH' or 'CRITICAL,HIGH,MEDIUM'] (without space in between).
18+
type: string
19+
default: 'CRITICAL,HIGH'
1620

1721
jobs:
1822
build-and-pubish:
1923
name: Build and publish Python packages to PyPi
2024
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-publish-to-pypi-versioned.yaml@kcc-UID2-2330-create-workflow-for-python
2125
with:
2226
release_type: ${{ inputs.release_type }}
27+
publish_vulnerabilities: ${{ inputs.publish_vulnerabilities }}
28+
vulnerability_failure_severity: ${{ inputs.vulnerability_failure_severity }}
2329
secrets: inherit

0 commit comments

Comments
 (0)