Skip to content

Commit

Permalink
updating due to requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenquanheycar committed Mar 21, 2024
1 parent 4ab4dd2 commit bde38bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 27 deletions.
24 changes: 1 addition & 23 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ inputs:
description: Set to true in order to enable timestamps on log messages
required: false
default: 'true'
repo-org:
description: Github Org to use for PR comment
required: true
repo-name:
description: Github Repo Name to use for PR comment
required: true
pr-number:
description: PR number to be used for PR comment
required: true
aws-account-id:
description: AWS account ID to use for ECR repo
required: true
Expand All @@ -39,17 +30,7 @@ inputs:
use-alpha:
description: AWS ECR Repo Alpha image
required: true
default: 'false'


# TODO(user): Define your outputs here
outputs:
some-output:
description: 'Some output description'
some-output:
description: 'Some output description'
some-output:
description: 'Some output description'
default: 'true'

runs:
using: 'docker'
Expand All @@ -58,9 +39,6 @@ runs:
DEBUG_MODE: ${{ inputs.debug-mode }}
LOG_LEVEL: ${{ inputs.log-level }}
LOG_TIMESTAMPED: ${{ inputs.log-timestamped }}
REPO_ORG: ${{ inputs.repo-org }}
REPO_NAME: ${{ inputs.repo-name }}
PR_NUMBER: ${{ inputs.pr-number }}
AWS_ACCOUNT_ID: ${{ inputs.aws-account-id }}
ECR_REPO_NAME: ${{ inputs.ecr-repo-name }}
ECR_REPO_TAG: ${{ inputs.ecr-repo-tag }}
Expand Down
8 changes: 4 additions & 4 deletions scripts/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
. "$(dirname "$0")/utils/script-utils.sh"
. "$(dirname "$0")/utils/gh-utils.sh"

check_env_var "REPO_ORG"
check_env_var "REPO_NAME"
check_env_var "PR_NUMBER"
REPO_ORG=${GITHUB_REPOSITORY_OWNER}
REPO_NAME=$(echo "${GITHUB_REPOSITORY}" |cut -d "/" -f2)
PR_NUMBER=${GITHUB_SHA}
check_env_var "AWS_ACCOUNT_ID"
check_env_var "ECR_REPO_NAME"
check_env_var "ECR_REPO_TAG"
Expand Down Expand Up @@ -46,4 +46,4 @@ comment_on_pull_request "${REPO_ORG}" \
"${_scan_results_comment}" \
"true" \
"scan-results:${_scan_repo_name}"


0 comments on commit bde38bf

Please sign in to comment.