|
74 | 74 | required: false |
75 | 75 | description: Unique id per workflow run. Must be set to unique value if dispatched multiple times for a single workflow. |
76 | 76 | default: "" |
| 77 | + trivy_enable: |
| 78 | + description: "Enable trivy scans on lock files" |
| 79 | + default: false # Enable this by default? |
| 80 | + type: boolean |
| 81 | + required: false |
77 | 82 | chromatic_enable: |
78 | 83 | description: 'Enable Chromatic tests' |
79 | 84 | required: false |
@@ -151,6 +156,7 @@ jobs: |
151 | 156 | enable_python: false |
152 | 157 | # We probably won't need Rust on Node builds... |
153 | 158 | # enable_rust: ${{ inputs.rust_enable }} |
| 159 | + trivy_enable: ${{ inputs.trivy_enable }} |
154 | 160 | run_parallel: ${{ inputs.run_parallel }} |
155 | 161 | node_version: ${{ vars.NODE_VERSION || inputs.node_version }} |
156 | 162 | npm_registry: ${{ vars.NPM_REGISTRY }} |
@@ -191,6 +197,7 @@ jobs: |
191 | 197 | with: |
192 | 198 | enable_node: false |
193 | 199 | enable_python: true |
| 200 | + trivy_enable: ${{ inputs.trivy_enable }} |
194 | 201 | enable_rust: ${{ inputs.rust_enable }} |
195 | 202 | run_parallel: ${{ inputs.run_parallel }} |
196 | 203 | node_version: ${{ vars.NODE_VERSION || inputs.node_version }} |
@@ -282,6 +289,7 @@ jobs: |
282 | 289 | - name: Build node and python |
283 | 290 | uses: ./tmp/github-workflows/.github/actions/build-node-python |
284 | 291 | with: |
| 292 | + trivy_enable: ${{ inputs.trivy_enable }} |
285 | 293 | enable_rust: ${{ inputs.rust_enable }} |
286 | 294 | run_parallel: ${{ inputs.run_parallel }} |
287 | 295 | node_version: ${{ vars.NODE_VERSION || inputs.node_version }} |
@@ -425,6 +433,7 @@ jobs: |
425 | 433 | - name: Build node and python |
426 | 434 | uses: ./tmp/github-workflows/.github/actions/build-node-python |
427 | 435 | with: |
| 436 | + trivy_enable: ${{ inputs.trivy_enable }} |
428 | 437 | enable_rust: ${{ inputs.rust_enable }} |
429 | 438 | run_parallel: ${{ inputs.run_parallel }} |
430 | 439 | node_version: ${{ vars.NODE_VERSION || inputs.node_version }} |
|
0 commit comments