From 61f4ffbfa346dc44456e38b9ac628c755d55cb31 Mon Sep 17 00:00:00 2001 From: Jay Luker Date: Tue, 8 Aug 2023 10:22:13 -0400 Subject: [PATCH] update to new action output syntax --- action.yml | 2 -- entrypoint.sh | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 5993d05..117d693 100644 --- a/action.yml +++ b/action.yml @@ -51,8 +51,6 @@ inputs: outputs: image_for_scanning: description: "The label:tag for a local image suitable for scanning" - ecr_repo_url: - description: "Link to the repo in the AWS ECR console" runs: using: docker image: Dockerfile diff --git a/entrypoint.sh b/entrypoint.sh index 9f96a70..95dacc0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,8 +11,9 @@ function main() { ACCOUNT_URL="$INPUT_ACCOUNT_ID.dkr.ecr.$INPUT_REGION.amazonaws.com" SCAN_ME_LABEL=${INPUT_REPO}:scan-me + # also set an output to allow for other image scanning steps - echo ::set-output name=image_for_scanning::${SCAN_ME_LABEL} + echo "image_for_scanning=${SCAN_ME_LABEL}" >> $GITHUB_OUTPUT local TAGS=$INPUT_TAGS local GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)