Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Disabling Source Type Override Parameters, including Source Version #102

Merged
merged 9 commits into from
Feb 9, 2023

Conversation

marcus-bcl
Copy link
Contributor

Issue #, if available:
#57

Description of changes:
This PR is an extension of #64 to ensure all three source override parameters are disabled. It also fixes merge conflicts and npm audit issues.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Check any applicable:

  • Were any files moved? Moving files changes their URL, which breaks all hyperlinks to the files.

Copy link
Contributor

@taoyong-ty taoyong-ty left a comment

Choose a reason for hiding this comment

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

Thank you so much for making this enhancement.

Apology for the delayed review. If you are still interested in wrapping up and merging this pull request, please address the comment and resolve the conflicts.

I am ready to approve and release once the comments have been addressed

code-build.js Outdated
@@ -152,6 +152,8 @@ async function waitForBuildEndTime(

function githubInputs() {
const projectName = core.getInput("project-name", { required: true });
const disableSourceOverride =
core.getInput("disable-source-override") === "true";
Copy link
Contributor

Choose a reason for hiding this comment

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

For consistency, could you either update this new line to use core.getInput("disable-source-override", {required: false}) === "true", or remove all other { required: false }s from githubInputs()?

test/code-build-test.js Show resolved Hide resolved
test/code-build-test.js Show resolved Hide resolved
README.md Outdated
@@ -31,6 +31,8 @@ The only required input is `project-name`.
1. **image-override** (optional) :
The name of an image for this build that overrides the one specified
in the build project.
1. **disable-source-override** (optional) :
Set to `true` if you want to disable providing `sourceTypeOverride` and `sourceLocationOverride` to CodeBuild.
Copy link
Contributor

Choose a reason for hiding this comment

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

and sourceVersion

@taoyong-ty
Copy link
Contributor

@marcus-bcl could you resolve the conflict, so I can merge this PR ?

@taoyong-ty taoyong-ty mentioned this pull request Feb 8, 2023
1 task
@marcus-bcl marcus-bcl closed this Feb 9, 2023
@marcus-bcl marcus-bcl deleted the master branch February 9, 2023 10:04
@marcus-bcl marcus-bcl restored the master branch February 9, 2023 10:04
@marcus-bcl marcus-bcl reopened this Feb 9, 2023
# Conflicts:
#	dist/index.js
@marcus-bcl
Copy link
Contributor Author

@marcus-bcl could you resolve the conflict, so I can merge this PR ?

Apologies I didn't see that your approval, I've resolved the conflict now - feel free to merge it. Thanks!

@taoyong-ty taoyong-ty merged commit 7d9ae4e into aws-actions:main Feb 9, 2023
@fstehle
Copy link

fstehle commented Feb 9, 2023

Looks like this PR breaks existing usages @taoyong-ty.
Our CI fails now with the following error:

Run aws-actions/aws-codebuild-run-build@v1
*****STARTING CODEBUILD*****
Error: Unexpected key 'disableSourceOverride' found in params
*****CODEBUILD COMPLETE*****

@DrewCurd
Copy link

DrewCurd commented Feb 9, 2023

Our CI too is failing with the above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants