Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading