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