Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit 96d5071

Browse files
authored
Merge pull request #38 from betadots/add_trivy
add trivy
2 parents d81c8cb + 397e313 commit 96d5071

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ name: QA🚦
44
on:
55
pull_request: {}
66
push:
7-
paths-ignore:
8-
- '.github/**'
97
branches:
108
- main
119

@@ -14,12 +12,30 @@ jobs:
1412
name: 'Build test container'
1513
runs-on: ubuntu-latest
1614
permissions:
15+
actions: read
1716
contents: read
17+
security-events: write
1818
steps:
19-
- uses: voxpupuli/gha-build-and-publish-a-container@v2
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Build Docker image
23+
uses: docker/build-push-action@v5
24+
with:
25+
tags: 'ci/pdc:${{ github.sha }}'
26+
push: false
27+
28+
- name: Run Trivy vulnerability scanner
29+
uses: aquasecurity/trivy-action@master
30+
with:
31+
image-ref: 'ci/pdc:${{ github.sha }}'
32+
format: 'sarif'
33+
output: 'trivy-results.sarif'
34+
35+
- name: Upload Trivy scan results to GitHub Security tab
36+
uses: github/codeql-action/upload-sarif@v3
2037
with:
21-
registry_password: ${{ secrets.GITHUB_TOKEN }}
22-
publish: 'false'
38+
sarif_file: 'trivy-results.sarif'
2339

2440
test_gem_installation:
2541
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)