getsentry / tacos-gha

Terraform Automation & Collaboration Software (TACOS) help organizations to scale the use of Terraform by enabling collaboration through governance, access controls, and automation of Terraform runs.
Apache License 2.0
1 stars 0 forks source link

add required check workflow #235

Closed lynnagara closed 2 months ago

lynnagara commented 2 months ago

this is the first part of a change to make tacos apply depend on required checks passing

it adds a new required-check workflow. once this is merged, it also needs to be marked as "required" in github.

this is needed in order to be able to write a test case that will fail to perform tacos apply when this check fails.

lynnagara commented 2 months ago

I think (perhaps) this fits better in tacos.demo? This is meant to represent some arbitrary required check in some arbitrary repo, if I'm understanding things. If so, this is strictly a part of the system-under-test, and so belongs in tacos-gha.demo, and will never be shared among any other repo, unlilke the other tacos-gha workflows.

I deliberated on where to put this. I think that the required check in the demos repo only exists for the purposes of facilitating unit tests in this repo though, and will only be toggled from the test cases in this repo, so i thought putting the definition here might be a better fit.

Specifically the presence of the required_check.fail file will be controlled from here