Skip to content

Commit a050e9e

Browse files
add clair
1 parent e66e180 commit a050e9e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,21 @@ jobs:
4545
# uses: github/codeql-action/upload-sarif@v3
4646
# with:
4747
# sarif_file: ${{ steps.scan.outputs.sarif }}
48+
49+
Clair:
50+
name: Clair
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Checkout source code
54+
uses: actions/checkout@v4
55+
- name: Build an image from Dockerfile
56+
run: docker build -t localbuild/mytodo-app:${{ github.sha }} .
57+
- name: Save Docker image
58+
run: docker save -o ${{ github.sha }} localbuild/mytodo-app:${{ github.sha }}
59+
- name: Run Clair V4
60+
uses: quay/clair-action@main
61+
with:
62+
image-path: ${{ github.sha }}
4863

4964
Bearer:
5065
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)