Skip to content

Commit

Permalink
Revert root changes
Browse files Browse the repository at this point in the history
Signed-off-by: John Kjell <john@testifysec.com>
  • Loading branch information
jkjell committed Nov 14, 2024
1 parent 9dd1864 commit 862b5c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
pre-command: |
curl -sSfL https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64 -o /usr/local/bin/hadolint && \
chmod +x /usr/local/bin/hadolint
command: hadolint -f sarif --ignore DL3002 Dockerfile > hadolint.sarif
command: hadolint -f sarif Dockerfile > hadolint.sarif
artifact-upload-name: hadolint.sarif
artifact-upload-path: hadolint.sarif
secrets:
Expand Down Expand Up @@ -122,6 +122,9 @@ jobs:
install: true
use: true

- name: Fix Dockerfile
run: sed -i 's/# USER root/USER root/g' Dockerfile

- name: Save Key
env:
ED_25519_PRIVATE_KEY: ${{ secrets.ED_25519_PRIVATE_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN go build -o bin/software

FROM cgr.dev/chainguard/static@sha256:676e989769aa9a5254fbfe14abb698804674b91c4d574bb33368d87930c5c472

USER root
# USER root

COPY --from=builder /build/bin/software /software

Expand Down

0 comments on commit 862b5c8

Please # to comment.