From 4aaf809b141b3f9b15ea7abb608bd052426bba52 Mon Sep 17 00:00:00 2001 From: Pablo Castillo Date: Wed, 18 Aug 2021 16:44:47 -0700 Subject: [PATCH 1/2] Removing image scanning from input --- entrypoint.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index a05f38c..4bd713c 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -15,7 +15,6 @@ function main() { sanitize "${INPUT_REGION}" "region" sanitize "${INPUT_ACCOUNT_ID}" "account_id" sanitize "${INPUT_REPO}" "repo" - sanitize "${INPUT_IMAGE_SCANNING_CONFIGURATION}" "image_scanning_configuration" ACCOUNT_URL="$INPUT_ACCOUNT_ID.dkr.ecr.$INPUT_REGION.amazonaws.com" From 266241cff4c633a4959780b45a24cc697c51a492 Mon Sep 17 00:00:00 2001 From: Pablo Castillo Date: Wed, 18 Aug 2021 16:51:03 -0700 Subject: [PATCH 2/2] updating README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0227d76..266d89d 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This Action allows you to create Docker images and push into a ECR repository. | `create_repo` | `boolean` | `false` | Set this to true to create the repository if it does not already exist | | `set_repo_policy` | `boolean` | `false` | Set this to true to set a IAM policy on the repository | | `repo_policy_file` | `string` | `repo-policy.json` | Set this to repository policy statement json file. only used if the set_repo_policy is set to true | -| `image_scanning_configuration:` | `boolean` | `false` | Set this to True if you want AWS to scan your images for vulnerabilities | +| `image_scanning_configuration` | `boolean` | `false` | Set this to True if you want AWS to scan your images for vulnerabilities | | `tags` | `string` | `latest` | Comma-separated string of ECR image tags (ex latest,1.0.0,) | | `dockerfile` | `string` | `Dockerfile` | Name of Dockerfile to use | | `extra_build_args` | `string` | `""` | Extra flags to pass to docker build (see docs.docker.com/engine/reference/commandline/build) | @@ -38,6 +38,7 @@ jobs: region: ap-northeast-2 tags: latest,${{ github.sha }} create_repo: true + image_scanning_configuration: true set_repo_policy: true repo_policy_file: repo-policy.json ```