Skip to content

Commit

Permalink
Add trivy scan for runner images
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangpengcheng committed Apr 30, 2024
1 parent b2356ff commit 476623a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test-function-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,27 @@ jobs:
run: |
PULSAR_IMAGE_TAG=3.2.2.1 PULSAR_IMAGE=streamnative/sn-platform KIND_PUSH=false images/build.sh
- name: Run Trivy vulnerability scanner for java
uses: aquasecurity/trivy-action@master
with:
image-ref: 'localhost:5000/pulsar-functions-java-runner:3.2.2.1'
format: 'table'
exit-code: '1'

- name: Run Trivy vulnerability scanner for python
uses: aquasecurity/trivy-action@master
with:
image-ref: 'localhost:5000/pulsar-functions-python-runner:3.2.2.1'
format: 'table'
exit-code: '1'

- name: Run Trivy vulnerability scanner for go
uses: aquasecurity/trivy-action@master
with:
image-ref: 'localhost:5000/pulsar-functions-go-runner:3.2.2.1'
format: 'table'
exit-code: '1'

- name: Verify function runner
run: |
.ci/verify_function_runner.sh
Expand Down

0 comments on commit 476623a

Please sign in to comment.