If so, wouldn’t a company like 1Password be using anchored library versions?
It's possible they don't require approval before merge, and the bad actor was able to PR this malicious code and merge it themselves, which would be quite surprising. Or alternatively, it's possible that the bad actor created a branch which builds in CI, and exploited some vulnerability to inject their malicious code into main builds from this branch build. Or it's possible that the malicious code was only deployed to a test or QA environment, but that this environment contained actual administrative data, which the attacker was able to exfiltrate.
What are most likely scenarios?
``` 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?