Skip to content

Commit 7cf33b2

Browse files
committed
updated trivy
1 parent 4f58b40 commit 7cf33b2

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/M1-4-2-CI-Practice.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
with:
120120
args: --severity-threshold=high
121121

122-
docker-image-build-push-trivy-scan:
122+
docker-trivy:
123123
runs-on: ubuntu-latest
124124
needs: [unittests, snyk, sonarcloud]
125125
permissions:
@@ -135,17 +135,18 @@ jobs:
135135
username: ${{ secrets.DOCKERHUB_USERNAME }}
136136
password: ${{ secrets.DOCKERHUB_TOKEN }}
137137

138-
- name: Build image
138+
- name: Build docker image
139139
uses: docker/build-push-action@v6
140140
with:
141141
context: .
142142
push: true
143143
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.sha }}
144144

145145
- uses: actions/checkout@v2
146-
- name: Run Trivy
147-
uses: anvayacloud/trivy-action@main
146+
- name: Trivy scan
147+
uses: dataswift/[email protected]
148148
with:
149-
image_name: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.sha }}
150-
format: "json"
149+
token: ${{ secrets.GITHUB_TOKEN }}
150+
image: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.sha }}
151+
151152

0 commit comments

Comments
 (0)