Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to use trivy action. #124

Merged
merged 2 commits into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .github/workflows/build-trivy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 Oracle Corporation and/or its affiliates.
# Copyright 2023, 2024, Oracle Corporation and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at
# https://oss.oracle.com/licenses/upl.

Expand All @@ -13,14 +13,13 @@ on:
jobs:
trivy-scan:
runs-on: ubuntu-latest
container:
image: ghcr.io/aquasecurity/trivy:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/runner/work/coherence-helidon-sockshop-sample/coherence-helidon-sockshop-sample:/repo

steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Trivy Scan
run: trivy fs --exit-code 1 /repo
- name: Run Trivy vulnerability scanner to scan repo
uses: aquasecurity/[email protected]
with:
scan-type: 'fs'
exit-code: 1