Skip to content

Commit 8f8e4ca

Browse files
authored
feat: rollback #19 (#20)
1 parent 3fee010 commit 8f8e4ca

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/docker-build-publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
echo ${{ toJSON(steps.sysdig.outputs.violation_report) }} | \
138138
jq -r .
139139
echo ${{ toJSON(steps.sysdig.outputs.violation_report) }} | \
140-
jq -r '.cis_docker_benchmark_violation_report[] | select(.rule!="CIS 4.1 Create a user for the container") | .violations[]' | \
140+
jq -r '.cis_docker_benchmark_violation_report[] | select(true) | .violations[]' | \
141141
wc -l | \
142142
xargs -I% test 0 -eq %
143143

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ COPY --from=builder /etc/passwd /etc/passwd
5353
COPY --from=builder /usr/bin/${APP_NAME} /go/bin/${APP_NAME}
5454
# Copy user
5555
COPY --from=builder /etc/passwd /etc/passwd
56+
USER ${APP_NAME}
5657

5758
HEALTHCHECK NONE
5859
ENTRYPOINT ["/go/bin/garm"]

0 commit comments

Comments
 (0)