Skip to content

Commit

Permalink
Merge pull request #200 from Checkmarx/fix-permission-entrypoint
Browse files Browse the repository at this point in the history
Fix permission entrypoint
  • Loading branch information
OrShamirCM authored Oct 1, 2024
2 parents 3b764b4 + ce79a7c commit ed196cd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# Use AST Base image
FROM checkmarx/ast-cli:2.2.8@sha256:6bdb2d0b18246ca1a269de2860938313ea14ca2d6e443c953c84fbac9ee5df85

# Docker actions must be run by the default Docker user (root).
USER root

# Copy the entrypoint script and properties used for the action
COPY --chmod=500 entrypoint.sh /app/entrypoint.sh
COPY --chmod=500 cleanup.sh /app/cleanup.sh
COPY entrypoint.sh /app/entrypoint.sh
COPY cleanup.sh /app/cleanup.sh

# Docker actions must be run by the default Docker user (root).
USER root
RUN chmod +x /app/entrypoint.sh \
&& chmod +x /app/cleanup.sh

0 comments on commit ed196cd

Please sign in to comment.