Skip to content

Commit 0ff4942

Browse files
meysholdtona-agent
andcommitted
Fix Trivy workflow: commit Dockerfile, upgrade trivy-action to 0.35.0
- Add .devcontainer/Dockerfile to git (was untracked, causing docker build failure) - Upgrade trivy-action from 0.28.0 to 0.35.0 (0.28.0 failed to install Trivy v0.56.1) Co-authored-by: Ona <no-reply@ona.com>
1 parent 4dbe9f3 commit 0ff4942

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04
2+
3+
# use this Dockerfile to install additional tools you might need, e.g.
4+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
5+
# && apt-get -y install --no-install-recommends <your-package-list-here>

.github/workflows/trivy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
docker build -t ghcr.io/ona-samples/github-security:${{ github.sha }} -f .devcontainer/Dockerfile .
2929
3030
- name: Run Trivy image scanner
31-
uses: aquasecurity/trivy-action@0.28.0
31+
uses: aquasecurity/trivy-action@0.35.0
3232
with:
3333
image-ref: 'ghcr.io/ona-samples/github-security:${{ github.sha }}'
3434
format: 'sarif'
@@ -54,7 +54,7 @@ jobs:
5454
uses: actions/checkout@v4
5555

5656
- name: Run Trivy filesystem scanner
57-
uses: aquasecurity/trivy-action@0.28.0
57+
uses: aquasecurity/trivy-action@0.35.0
5858
with:
5959
scan-type: 'fs'
6060
scan-ref: '.'

0 commit comments

Comments
 (0)