Skip to content

Commit 891a2e2

Browse files
authored
Add trivy stuff to individual build workflows
1 parent f62ced9 commit 891a2e2

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/build-node.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ on:
77
type: string
88
required: false
99
default: ${{ github.ref || github.head_ref }}
10+
trivy_enable:
11+
description: "Enable trivy scans on lock files"
12+
default: false # Enable this by default?
13+
type: boolean
14+
required: false
15+
trivy_severity:
16+
description: "Severity for the trivy scans"
17+
type: string
18+
required: false
1019
chromatic_enable:
1120
description: 'Enable Chromatic tests'
1221
required: false
@@ -69,6 +78,8 @@ jobs:
6978
with:
7079
enable_node: true
7180
enable_python: false
81+
trivy_enable: ${{ inputs.trivy_enable }}
82+
trivy_severity: ${{ inputs.trivy_severity }}
7283
node_version: ${{ vars.NODE_VERSION || inputs.node_version }}
7384
npm_registry: ${{ vars.NPM_REGISTRY }}
7485
github_ro_token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}

.github/workflows/build-python.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ on:
77
type: string
88
required: false
99
default: ${{ github.ref || github.head_ref }}
10+
trivy_enable:
11+
description: "Enable trivy scans on lock files"
12+
default: false # Enable this by default?
13+
type: boolean
14+
required: false
15+
trivy_severity:
16+
description: "Severity for the trivy scans"
17+
type: string
18+
required: false
1019
runs_on:
1120
type: string
1221
required: false
@@ -56,6 +65,8 @@ jobs:
5665
with:
5766
enable_node: false
5867
enable_python: true
68+
trivy_enable: ${{ inputs.trivy_enable }}
69+
trivy_severity: ${{ inputs.trivy_severity }}
5970
github_ro_token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
6071
python_version: ${{ vars.PYTHON_VERSION || inputs.python_version }}
6172
enable_python_cache: ${{ inputs.runs_on != 'self-hosted' }}

0 commit comments

Comments
 (0)