Skip to content

Commit e66e180

Browse files
build image container and scan with grype
1 parent cf90045 commit e66e180

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- main
1010

1111
jobs:
12-
Anchore:
12+
Grype:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout source code
@@ -20,11 +20,31 @@ jobs:
2020
with:
2121
path: "."
2222
# fail-build: false
23-
# output-format: table
24-
- name: upload Anchore scan SARIF report
25-
uses: github/codeql-action/upload-sarif@v3
23+
output-format: table
24+
# - name: upload Anchore scan SARIF report
25+
# uses: github/codeql-action/upload-sarif@v3
26+
# with:
27+
# sarif_file: ${{ steps.scan.outputs.sarif }}
28+
29+
Grype-Image:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout source code
33+
uses: actions/checkout@v4
34+
- name: Build the Container image
35+
run: |
36+
pwd
37+
ls -la
38+
docker build . --file Dockerfile --tag localbuild/todo-app:v1
39+
- uses: anchore/scan-action@v3
40+
id: scan
2641
with:
27-
sarif_file: ${{ steps.scan.outputs.sarif }}
42+
image: "localbuild/todo-app:v1"
43+
output-format: table
44+
# - name: upload Anchore scan SARIF report
45+
# uses: github/codeql-action/upload-sarif@v3
46+
# with:
47+
# sarif_file: ${{ steps.scan.outputs.sarif }}
2848

2949
Bearer:
3050
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)