feat(): add trivy
Some checks failed
PR Build / Test (pull_request) Failing after 4m49s
PR Build / Build_Image (pull_request) Successful in 2m23s

This commit is contained in:
2025-10-06 09:27:19 +02:00
parent 2cf3cb70d2
commit be841ab670
3 changed files with 28 additions and 1 deletions

View File

@@ -17,6 +17,15 @@ jobs:
go-version: '1.24.x' go-version: '1.24.x'
- name: Test with the Go CLI - name: Test with the Go CLI
run: go test ./... run: go test ./...
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@0.28.0
with:
scan-type: 'fs'
scan-ref: '.'
format: 'table'
exit-code: '1'
ignore-unfixed: true
severity: 'CRITICAL,HIGH'
Build_Image: Build_Image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View File

@@ -14,6 +14,15 @@ jobs:
go-version: '1.24.x' go-version: '1.24.x'
- name: Test with the Go CLI - name: Test with the Go CLI
run: go test ./... run: go test ./...
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@0.28.0
with:
scan-type: 'fs'
scan-ref: '.'
format: 'table'
exit-code: '1'
ignore-unfixed: true
severity: 'CRITICAL,HIGH'
Build_Image: Build_Image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -31,4 +40,4 @@ jobs:
file: ./Dockerfile file: ./Dockerfile
push: false push: false
tags: | tags: |
lerentis/canada-kaktus:latest lerentis/canada-kaktus:latest

View File

@@ -14,6 +14,15 @@ jobs:
go-version: '1.24.x' go-version: '1.24.x'
- name: Test with the Go CLI - name: Test with the Go CLI
run: go test ./... run: go test ./...
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@0.28.0
with:
scan-type: 'fs'
scan-ref: '.'
format: 'table'
exit-code: '1'
ignore-unfixed: true
severity: 'CRITICAL,HIGH'
Build_Image: Build_Image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: