Skip to content

Commit

Permalink
semgrep dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajmouriyakong committed Nov 15, 2024
1 parent 1436cb5 commit 2a4fe1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security-actions/dockerfiles/semgrep.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM ${SEMGREP_BASE_IMAGE}:${SEMGREP_BASE_TAG} AS semgrep-base
ARG SEMGREP_USER=semgrep
RUN addgroup -g 1001 $SEMGREP_USER && \
adduser -D -u 1001 -G $SEMGREP_USER $SEMGREP_USER
RUN chown $TRIVY_USER:$TRIVY_USER /usr/local/bin/semgrep
RUN chown $SEMGREP_USER:$SEMGREP_USER /usr/local/bin/semgrep
# Switch to the non-root user
USER $SEMGREP_USER
WORKDIR /home/$SEMGREP_USER
Expand Down

0 comments on commit 2a4fe1d

Please sign in to comment.