From 92b42f96b12348827455f31a79fe592f21c9694f Mon Sep 17 00:00:00 2001 From: Advait Patel Date: Fri, 12 Jun 2026 04:10:14 -0500 Subject: [PATCH] feat: add compose support to github action Co-authored-by: Cursor --- action.yml | 4 ++++ entrypoint.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/action.yml b/action.yml index 66fa5d4..8bf1961 100644 --- a/action.yml +++ b/action.yml @@ -13,6 +13,9 @@ inputs: image: description: 'Docker image name to scan' required: false + compose: + description: 'Path to docker-compose file to scan' + required: false output: description: 'Custom output file path' required: false @@ -51,6 +54,7 @@ runs: env: INPUT_DOCKERFILE: ${{ inputs.dockerfile }} INPUT_IMAGE: ${{ inputs.image }} + INPUT_COMPOSE: ${{ inputs.compose }} INPUT_OUTPUT: ${{ inputs.output }} INPUT_OPENAI_API_KEY: ${{ inputs.openai_api_key }} INPUT_ANTHROPIC_API_KEY: ${{ inputs.anthropic_api_key }} diff --git a/entrypoint.sh b/entrypoint.sh index d19194a..e7cb4c8 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -22,6 +22,10 @@ if [ -n "${INPUT_IMAGE}" ]; then ARGS+=("-i" "${INPUT_IMAGE}") fi +if [ -n "${INPUT_COMPOSE}" ]; then + ARGS+=("-c" "${INPUT_COMPOSE}") +fi + if [ -n "${INPUT_OUTPUT}" ]; then ARGS+=("-o" "${INPUT_OUTPUT}") fi