From 3c7eadef43e68f965af380f3aaed4160c37e2a74 Mon Sep 17 00:00:00 2001 From: Josh Dolitsky Date: Mon, 17 Jul 2023 14:21:06 -0500 Subject: [PATCH] fix plumbing of command Signed-off-by: Josh Dolitsky --- .github/workflows/build.yml | 1 - action.yml | 10 ++++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 41c1e8c..da4741e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,6 @@ jobs: - uses: jdolitsky/wolfi-act@main with: packages: grype - debug: true command: | grype cgr.dev/chainguard/nginx echo "---" diff --git a/action.yml b/action.yml index c561a1a..5b0b4ec 100644 --- a/action.yml +++ b/action.yml @@ -15,6 +15,7 @@ inputs: description: "Whether or not to add debug logging" required: false default: 'false' + runs: using: "composite" steps: @@ -28,6 +29,11 @@ runs: set -x fi + if [[ "${{inputs.command}}" == "" ]]; then + echo "Missing input: command" + exit 1 + fi + cat >./wolfi-act.apko.config.yaml <