-
-
Notifications
You must be signed in to change notification settings - Fork 579
Conversation
Hi @schparky, Currently, the |
Ah, it looks like you started from the correct branch. I changed the target. Still failing. I will take a look at this issue. |
I tested two things.
The symptom:
89ed84d is the latest commit in the main branch.
I tested after delete the last commit 89ed84d from the main branch to see if the action noticed it and merged the PR into the last commit of the main branch, but the action still keep trying to merge into the deleted sha. |
This issue was originally discussed in the Slack channel and I think it could be fine. Even though it changes the behavior of error handling for each environment, the direction of this change is narrowing down the scope of a safe place, it could be better.
This is better from the security point of view and allows users have other custom environment names for their various production-ish environments. I basically agree that those debugging messages SHOULD only be allowed for a specific narrow environment so != development looks better than == production to me. However, regardless the other values are mentioned in the doc or not, behavior change should be handled carefully so I just ask you to consider them if you are fine.  [1] https://gophers.slack.com/archives/C3MSAFD40/p1663318963883059 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you, @sio4 |
The
defaultErrorHandler
presently compares the environment against "production" to determine whether it's safe to dump debugging details. When running in staging (or qa, etc.), it is preferable to not have debugging detail since it could be hosted on a public server. This PR reverses the logic so the detailed error message is only used when the environment is "development".