Skip to content

Commit

Permalink
πŸš’ Prod is down πŸš’. Approve ASAP
Browse files Browse the repository at this point in the history
Signed-off-by: John Kjell <[email protected]>
  • Loading branch information
jkjell committed Jan 15, 2025
1 parent 269de7e commit dd4246d
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 @@ -40,7 +40,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

Expand Down Expand Up @@ -110,6 +110,9 @@ jobs:
install: true
use: true

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

- name: Build Image
uses: testifysec/witness-run-action@reusable-workflow # v0.2.0
with:
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 dd4246d

Please sign in to comment.