Skip to content
Merged
Changes from 3 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: 3 additions & 1 deletion .github/scripts/run-codebuild-batch-job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ START_RESULT=$(
aws codebuild start-build-batch \
--project-name ${PROJECT_NAME} \
--source-version $SOURCE_VERSION \
--environment-variables-override file:///tmp/gh_env_vars.json
--environment-variables-override file:///tmp/gh_env_vars.json \
--source-type-override GITHUB \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the source provider already GitHub, why do we have to override it to set GitHub again?

--source-location-override https://github.com/awslabs/"$GITHUB_REPOSITORY_NO_ORG".git
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: The quotes should generally be around an entire argument, not just a substring. Example:

 aws codebuild start-build-batch \
    --project-name "$PROJECT_NAME" \
    --source-version "$SOURCE_VERSION" \
    --environment-variables-override file:///tmp/gh_env_vars.json \
    --source-location-override "https://github.com/awslabs/$GITHUB_REPOSITORY_NO_ORG.git"

)

if [ "$?" != "0" ]; then
Expand Down
Loading