-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
If github custom property is applied on a repo, atlantis stops working. #4989
Comments
Hey @faizan002 👋, I'm here to help you with any bugs, questions, or contributions you have. Let's work together to solve this issue! Atlantis might not handle GitHub webhooks with custom properties effectively, as there is no specific mention of handling custom properties in the available information. This could be causing the issue you're experiencing. To debug this, you can enable more detailed logging in Atlantis. While specific logging options weren't found in the available data, you can generally increase verbosity by configuring the logging level in your Atlantis setup. Check your Atlantis configuration for any logging settings that can be adjusted to provide more insight into webhook processing. Additionally, ensure that your webhook secret and repository allowlist are correctly configured, as these are crucial for authenticating and authorizing webhook requests [1][2][3]. |
Hi @faizan002! Long time, no see :) We have several custom properties, both required and not on all of our repos and we haven't seen any issues with this. Can you check the logs and see if there are any errors? |
Hi @stasostrovskyi What a pleasant surprise. Then I removed the property and issued the same comment on PR. Atlantis did accept it as a command.
|
I'm 99% sure that there is nothing special in atlantis code with regards to github's custom properties. We are using custom properties (but only single_select ones) and atlantis (latest release) works fine. Are you using latest version (0.30.0)? Do you have any special flags enabled? |
I do not disagree to what you said and it does not make any sense to me either. I did a diff of working and not-working github-webhook json and this was the difference.
and this did not work:
To answer your question:
|
It's weird :( I think the only way forward is to try and debug atlantis, reproduce the problem and see why it works the way it works.. |
it is weirder than that. We found out that problem occurs if you choose "multi select" type while creating a custom property, We changed it to single select and it worked. |
That's a good finding! it can as well be down to some tiny bug in https://github.com/google/go-github/blob/master/github/messages.go#L319 as well as in atlantis itself.. |
I checked and this was fixed in https://github.com/google/go-github/releases/tag/v64.0.0 however atlantis wasn't bumped to this version until 2 weeks ago after the latest release |
Community Note
Overview of the Issue
We have an Atlantis running as docker container.
It works fine with our github.com/org but as soon as we create a custom property, it stops working.
The webhook shows 200 OK but on atlantis logs, we do not see anything happening. Neither there is an response on PR.
Is it a limitation on atlantis to not being able to interpret webhook when it contains custom_properties ?
Can we enable some logging to see what is happening when atlantis is not able to interepret webhook.
Reproduction Steps
Logs
Environment details
Additional Context
The text was updated successfully, but these errors were encountered: