IsWorkloadIdentityEmail checks if the email is a workload identity email.
(email string)
| 557 | |
| 558 | // IsWorkloadIdentityEmail checks if the email is a workload identity email. |
| 559 | func IsWorkloadIdentityEmail(email string) bool { |
| 560 | return strings.HasSuffix(email, fmt.Sprintf("@%s", WorkloadIdentitySuffix)) || isProjectLevelEmail(email, WorkloadIdentitySuffix) |
| 561 | } |
| 562 | |
| 563 | // isProjectLevelEmail checks if the email is a project-level email. |
| 564 | func isProjectLevelEmail(email, suffix string) bool { |
no test coverage detected