wmo-im / wis2box

WIS2 in a box is a reference implementation of a WMO WIS2 Node
https://docs.wis2box.wis.wmo.int
Apache License 2.0
35 stars 15 forks source link

add security scanners for containers #652

Open tomkralidis opened 2 months ago

tomkralidis commented 2 months ago

Add trivy via GitHub Actions in order to scan containers for vulnerabilities.

maaikelimper commented 1 week ago

I ran trivy on the wis2box-api, it found one issue with severity=HIGH https://github.com/wmo-im/wis2box-api/actions/runs/9615735356/job/26523621849

maaikelimper commented 1 week ago

question: should the GHA only fail on severity=CRITICAL ?

tomkralidis commented 1 week ago
  1. can we update wmo-im/dim_eccodes_baseimage to 22.04 ?
  2. we should be checking for severity: CRITICAL,HIGH
maaikelimper commented 1 week ago

Add trivy.yml to PR: https://github.com/wmo-im/wis2box/pull/699

wis2box-management passes

wis2box-api, wis2box-ui and wis2box-webapp fail

image

maaikelimper commented 6 days ago

@tomkralidis how to proceed ?

tomkralidis commented 6 days ago
maaikelimper commented 4 days ago

after updating dim_eccodes_baseimage to use Ubuntu 22.04, wis2box-api now passes the vulnerability scan: image