I am trying to set up a Workload Identity Federation auth in my GCP org.
I want to restrict the access by leveraging attribute_conditions
in order for some repos and some branches to have access to the corresponding permissions to be provided by the GCP service accounts. Assuming I want to use 2 repos/branches, what is the syntactically correct way (in terms of CEL) to do this?
attribute_condition = "(assertion.sub=='repo:MyOrg/repo1:ref:refs/heads/main|repo:MyOrg/repo2:ref:refs/heads/master')"
The above example which i have tried does not seem to work.