|
|
|
|
|
by darthwalsh
7 days ago
|
|
I like HiJon89's answer, but I've also seen ```
def deployProd = branch_name() == "main"
``` and it's trivial for any commit to change that to `= True` These systems are often designed where CI and CD have access to the same creds, and anybody "on the team who can push a branch" is trusted to not intentionally break things. |
|
What would you assume is a plausible way “anyone on the team” would have been compromised?