Skip to content

Commit

Permalink
add security option
Browse files Browse the repository at this point in the history
  • Loading branch information
NyakudyaA committed Dec 31, 2024
1 parent 62c0810 commit e8c8e5a
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 34 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/build-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,40 +134,40 @@ jobs:
name: kartoza-geoserver
path: /tmp/geoserver.tar

# scan_image:
# runs-on: ubuntu-latest
# timeout-minutes: 20
# if: |
# github.actor != 'dependabot[bot]' &&
# !(
# contains(github.event.pull_request.title, '[skip-release]') ||
# contains(github.event.comment.body, '/skiprelease')
# )
# needs: [run-scenario-tests]
# steps:
# - uses: actions/checkout@v4
# - name: Download artifact
# uses: actions/download-artifact@v4
# with:
# name: kartoza-geoserver
# path: /tmp
# - name: Load image
# run: |
# docker load --input /tmp/geoserver.tar
# - name: Run Trivy vulnerability scanner
# uses: aquasecurity/trivy-action@master
# with:
# format: 'sarif'
# ignore-unfixed: true
# image-ref: kartoza/geoserver:manual-build
# output: 'trivy-results.sarif'
# severity: 'CRITICAL,HIGH'
# vuln-type: 'os,library'
#
# - name: Upload Trivy scan results to GitHub Security tab
# uses: github/codeql-action/upload-sarif@v3
# with:
# sarif_file: 'trivy-results.sarif'
scan_image:
runs-on: ubuntu-latest
timeout-minutes: 20
if: |
github.actor != 'dependabot[bot]' &&
!(
contains(github.event.pull_request.title, '[skip-release]') ||
contains(github.event.comment.body, '/skiprelease')
)
needs: [run-scenario-tests]
steps:
- uses: actions/checkout@v4
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: kartoza-geoserver
path: /tmp
- name: Load image
run: |
docker load --input /tmp/geoserver.tar
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
format: 'sarif'
ignore-unfixed: true
image-ref: kartoza/geoserver:manual-build
output: 'trivy-results.sarif'
severity: 'CRITICAL,HIGH'
vuln-type: 'os,library'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'

run-scenario-tests:
runs-on: ubuntu-latest
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,14 @@ to see if there are no issues reported there. We rely on the GeoServer community
issues. For urgent upstream problems, you will need to get paid support
from the developers in [GeoServer](https://geoserver.org/).
### Security Vulnerabilities
The published image uses [Trivy](https://trivy.dev/latest/) for scanning vulnerabilities. The vulnerabilities
are listed in the [security section](https://github.com/kartoza/docker-geoserver/security/code-scanning).
You can also use other tools to scan the image for vulnerabilities. If you
discover vulnerabilities related to how this image is packaged please raise it
as an issue and label it with `security` tag. For reporting other upstream security
issues please follow the guidelines from [upstream geoserver](https://github.com/geoserver/geoserver/blob/main/SECURITY.md)
Other platforms where users can ask questions and get assistance are listed below:
* [Stack Exchange](https://stackexchange.com/)
* [GeoServer Mailing lists](https://sourceforge.net/projects/geoserver/lists/geoserver-users)
Expand Down

0 comments on commit e8c8e5a

Please sign in to comment.