Skip to content

Commit f761076

Browse files
author
kmova
committed
fix(ci): ensure scan happens after images is generated
Signed-off-by: kmova <[email protected]>
1 parent 566c27b commit f761076

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,15 @@ jobs:
5656
5757
trivy:
5858
runs-on: ubuntu-18.04
59+
needs: ['linux-utils']
5960
steps:
6061
- name: Checkout code
6162
uses: actions/checkout@v2
6263

6364
- name: Run Trivy vulnerability scanner
6465
uses: aquasecurity/trivy-action@master
6566
with:
66-
image-ref: 'openebs/linux-utils:ci'
67+
image-ref: openebs/linux-utils:${{ env.TAG }}
6768
format: 'table'
6869
exit-code: '1'
6970
ignore-unfixed: true

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
5656
trivy:
5757
runs-on: ubuntu-18.04
58+
needs: ['linux-utils']
5859
steps:
5960
- name: Checkout code
6061
uses: actions/checkout@v2

0 commit comments

Comments
 (0)