Skip to content

Commit

Permalink
ci: fix trivy action
Browse files Browse the repository at this point in the history
By default it also checks for secrets in compiled Python binary files
(/var/lib/syslog-ng-venv/lib/python3.12/site-packages/google/auth/crypt/__pycache__/_python_rsa.cpython-312.pyc)

See Python docs for more details
https://docs.python.org/3/using/cmdline.html#envvar-PYTHONDONTWRITEBYTECODE

Signed-off-by: Szilard Parrag <[email protected]>
  • Loading branch information
OverOrion committed Oct 9, 2024
1 parent ba344fa commit 700286c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker/alpine.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ RUN mkdir packages \
FROM alpine:3.20

ARG DEBUG
ENV PYTHONDONTWRITEBYTECODE=true

# https://github.com/opencontainers/image-spec/blob/main/annotations.md
LABEL maintainer="axoflow.io"
Expand Down

0 comments on commit 700286c

Please sign in to comment.