runatlantis / atlantis

Terraform Pull Request Automation
https://www.runatlantis.io
Other
7.83k stars 1.06k forks source link

Log command and output of Repo and Project Permissions: External Command #4942

Open chadinwork opened 1 month ago

chadinwork commented 1 month ago

Community Note


Describe the user story

As a developer, when I use Repo and Project Permissions: External Command (https://www.runatlantis.io/docs/repo-and-project-permissions.html) I'd like to be able to debug the external script I wrote.

Describe the solution you'd like

I suggest in case the user was not authorised, to add an Info log with the commands run and the output. (The echo from the script.)

Describe the drawbacks of your solution

I'm not sure how comfortable people are with logging the commands run and the output. I think common sense applies—don't echo anything sensitive.

Describe alternatives you've considered

Status quo. Try to debug the script by running it locally and feeding in the variables manually. But this is currently not enough, as for the issues I face, I need to see the actual arguments Atlantis is feeding to the script.