Skip to content

Commit 2bf8ab4

Browse files
committed
added the docker build job to the trivy job
1 parent 6bc61d6 commit 2bf8ab4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/unit-sec-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ jobs:
5858
- name: Checkout code
5959
uses: actions/checkout@v4
6060

61+
- name: Build Docker Image
62+
run: |
63+
docker build -t awesome-fastapi:${{ github.sha }} .
64+
6165
- name: Run Trivy vulnerability scanner
6266
uses: aquasecurity/trivy-action@7b7aa264d83dc58691451798b4d117d53d21edfe
6367
with:

0 commit comments

Comments
 (0)