Skip to content

Commit f514828

Browse files
author
cx-Margarita-LevitM
committed
Fix IAC vulnerability issue
1 parent 29dd645 commit f514828

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
# Use AST Base image
22
FROM checkmarx/ast-cli:2.3.22@sha256:64cb2c7c244a342f0fe6308654cdac2bee35d26c35985bb97294575c9c192054
33

4+
USER root
45
# Copy the entrypoint script and properties used for the action
56
COPY entrypoint.sh /app/entrypoint.sh
67
COPY cleanup.sh /app/cleanup.sh
78

89
RUN chmod +x /app/entrypoint.sh \
910
&& chmod +x /app/cleanup.sh
1011

11-
# Docker actions must be run by the default Docker user (root).
12-
USER nonroot
13-
1412
HEALTHCHECK NONE

0 commit comments

Comments
 (0)