Skip to content

Commit c1b7770

Browse files
committed
Enhance Docker run command in action.yml to use custom entrypoint
- Updated the Docker run command to include the `--entrypoint` flag, allowing for the specification of a custom entrypoint script. - This change improves the flexibility of the action by enabling the use of a specific entrypoint for the container.
1 parent ee41bff commit c1b7770

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ runs:
143143
SUMMARY_FILE=$(mktemp)
144144
145145
# Run the Docker container with --rm flag for automatic cleanup
146+
# Use --entrypoint to override the base image's entrypoint (cx)
146147
docker run --rm \
148+
--entrypoint /app/entrypoint.sh \
147149
-e CX_BASE_URI="${CX_BASE_URI}" \
148150
-e CX_TENANT="${CX_TENANT}" \
149151
-e CX_CLIENT_ID="${CX_CLIENT_ID}" \
@@ -167,8 +169,7 @@ runs:
167169
-v "${SUMMARY_FILE}:/github/file_commands/summary" \
168170
-v "${GITHUB_WORKSPACE}:/github/workspace" \
169171
-w /github/workspace \
170-
checkmarx-ast-action:local \
171-
/app/entrypoint.sh
172+
checkmarx-ast-action:local
172173
173174
EXIT_CODE=$?
174175

0 commit comments

Comments
 (0)