-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[aws-codebuild] Codebuild source Github PR doesn't work with FILE_PATH #8867
Comments
Hi @Nikamura , thanks for opening the issue. Looks like this changed since we introduced our validation. The docs now say:
Looks like we're still validating GitHub (and most likely BitBucket) sources the same way we do GitHub Enterprise ones. This needs a code change from our side. It should be a simple change here, so if you want to open is a Pull Request, that would be awesome - see here for more info on how to get started with developing the CDK. In the meantime, you can use escape hatches in the CDK to unblock yourself. Thanks, |
@skinny85 Can we use FILE_PATH filter with Github Enterprise one's still??? I am not using CDK but configuring my codebuild from the UI. |
@VishnuSM I believe the answer is "no", according to the CodeBuild documentation. |
@skinny85 Following is a question regarding AWS CodeBuild. The closest I encountered is CODEBUILD_RESOLVED_SOURCE_VERSION environment variable. But this refers only to the recent commit SHA. Additionally I was also thinking of consuming the GitHub Webhook payload URL to get the data regarding the changed files etc. Any help around this is highly appreciated. Thanks & Regards, |
You will have to use the GitHub API to get this data inside of your CodeBuild job. |
@skinny85 Any help around this is highly appreciated. Thanks & Regards, |
@VishnuSM I think this is outside the purview of CDK. Sine it "usually" works, I think the CDK setup is correct, and you need to dig into the details of the services that you are using (in this case, Lambda and RDS) to figure out why is this happening. |
Trying to create codebuild project with github source and adding pull request created/updated trigger with file_path filter results in an error, while this succeeds doing in the UI.
Reproduction Steps
codebuild.FilterGroup.inEventOf(codebuild.EventAction.PULL_REQUEST_UPDATED).andFilePathIsNot("^my_path.*")
Error Log
Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: