Skip to content

Commit 338bb3c

Browse files
authored
Fix trivy scan workflow (#2172)
Signed-off-by: ZePan110 <ze.pan@intel.com>
1 parent 2870386 commit 338bb3c

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/_trivy-scan.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ on:
2828
description: "Path to Dockerfile"
2929
required: true
3030
type: string
31-
31+
node:
32+
default: "gaudi"
33+
description: "Hardware to run scan"
34+
required: true
35+
type: string
3236
jobs:
3337
trivy-scan:
3438
runs-on: "docker-build-${{ inputs.node }}"
@@ -40,9 +44,12 @@ jobs:
4044
docker system prune -f
4145
- name: Checkout out Repo
4246
uses: actions/checkout@v4
47+
- name: Install Dependencies
48+
run: |
49+
sudo apt-get update
50+
sudo apt-get install -y jq
4351
- name: Clone Required Repo
4452
run: |
45-
sudo yum install -y jq
4653
source ${{ github.workspace }}/.github/env/_build_image.sh
4754
if [[ "${{ inputs.image }}" == "vllm" ]]; then
4855
git clone -b ${VLLM_VER} --single-branch https://github.com/vllm-project/vllm.git

.github/workflows/manual-docker-scan.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
tag: ${{ inputs.tag }}
5252
image: ${{ matrix.image }}
5353
dockerfile: ${{ matrix.dockerfile }}
54+
node: ${{ inputs.node }}
5455
secrets: inherit
5556

5657
upload-artifacts:

0 commit comments

Comments
 (0)