Skip to content

Commit

Permalink
fix: scan docker image on cves & upgrade deps (#2373)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikheifets-splunk authored Mar 27, 2024
1 parent 51e4a1b commit de33bfc
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 24 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci-lite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,21 @@ jobs:
cache-from: type=registry,ref=${{ needs.meta.outputs.container_base }}
cache-to: type=inline

scan-docker-image-cves:
runs-on: ubuntu-latest
name: Scan docker image on CVEs
needs:
- meta
- build_action
steps:
- name: Run docker vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ needs.meta.outputs.container_base }}
format: 'table'
exit-code: '1'
severity: 'CRITICAL,HIGH'

test-container:
runs-on: ubuntu-latest
needs:
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/ci-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,21 @@ jobs:
REVISION=${{ needs.meta.outputs.container_revision }}
cache-from: type=registry,ref=${{ needs.meta.outputs.container_base }}
cache-to: type=inline

scan-docker-image-cves:
runs-on: ubuntu-latest
name: Scan docker image on CVEs
needs:
- meta
- build_action
steps:
- name: Run docker vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ needs.meta.outputs.container_base }}
format: 'table'
exit-code: '1'
severity: 'CRITICAL,HIGH'

test-container:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.


ARG SYSLOGNG_VERSION=4.5.0
ARG SYSLOGNG_VERSION=4.6.0
FROM ghcr.io/axoflow/axosyslog:${SYSLOGNG_VERSION}


Expand All @@ -40,7 +40,7 @@ RUN apk add -U --upgrade --no-cache \
wget \
cargo \
ca-certificates \
&& curl -fsSL https://goss.rocks/install | GOSS_VER=v0.4.4 sh \
&& curl -fsSL https://goss.rocks/install | GOSS_VER=v0.4.6 sh \
&& groupadd --gid 1024 syslog \
&& useradd -M -g 1024 -u 1024 syslog \
&& usermod -L syslog \
Expand Down
4 changes: 2 additions & 2 deletions package/Dockerfile.lite
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.


ARG SYSLOGNG_VERSION=4.5.0
ARG SYSLOGNG_VERSION=4.6.0
FROM ghcr.io/axoflow/axosyslog:${SYSLOGNG_VERSION}


Expand All @@ -40,7 +40,7 @@ RUN apk add -U --upgrade --no-cache \
wget \
cargo \
ca-certificates \
&& curl -fsSL https://goss.rocks/install | GOSS_VER=v0.4.4 sh \
&& curl -fsSL https://goss.rocks/install | GOSS_VER=v0.4.6 sh \
&& groupadd --gid 1024 syslog \
&& useradd -M -g 1024 -u 1024 syslog \
&& usermod -L syslog \
Expand Down
2 changes: 1 addition & 1 deletion package/etc/syslog-ng.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@version:4.5
@version:4.6


# syslog-ng configuration file.
Expand Down
2 changes: 1 addition & 1 deletion package/lite/etc/syslog-ng.conf.jinja
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@version:4.5
@version:4.6


# syslog-ng configuration file.
Expand Down
23 changes: 6 additions & 17 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ sqlitedict = "^2.0.0"
requests = "^2.28.1"
shortuuid = "^1.0.11"
pyyaml = "6.0.1"
setuptools = ">=69.0"


[tool.poetry.group.dev.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tests/Dockerfile.nc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG SYSLOGNG_VERSION=4.5.0
ARG SYSLOGNG_VERSION=4.6.0
FROM ghcr.io/axoflow/axosyslog:${SYSLOGNG_VERSION}

RUN apk add -U netcat-openbsd

0 comments on commit de33bfc

Please sign in to comment.