Skip to content

Commit

Permalink
Merge pull request #40 from hwbllmnn/trivy-scan
Browse files Browse the repository at this point in the history
Add trivy scan
  • Loading branch information
buehner committed Dec 20, 2023
2 parents 493e819 + 681267f commit 1402569
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: build
on:
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build image
run: docker build -t geoserver-docker.osgeo.org/geoserver:${{ github.sha }} .
- name: Run trivy
uses: aquasecurity/trivy-action@master
with:
image-ref: 'geoserver-docker.osgeo.org/geoserver:${{ github.sha }}'
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'

0 comments on commit 1402569

Please sign in to comment.