Replies: 3 comments 3 replies
This comment was marked as spam.
This comment was marked as spam.
|
Thanks for the feedback @sorah - I've asked the team responsible for OIDC to take a look at this. |
3 replies
|
I'd like to 👍 this as well. One use case is for enforcing the Session Name to match the repository's name based on the JWT. Something like this: This ensures we have consistency when looking through cloudwatch as well as gives us the flexibility to allow resources based on the short name of the repository, excluding the org. The issue for session names is that the |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect#understanding-the-oidc-token
I wonder if GitHub Actions issue ID tokens with
repository_nameclaim along with the existingrepository_owner.There is already
repoclaim, but it comes under a format"#{owner}/#{name}". Major providers that accepts ID token allow writing policy with variables taken from OIDC claims, like AWS. However they don't allow string operations, so it would be useful ifrepository_nameclaim is given by GitHub Actions.For instance, workflow jobs which push Docker images to a cloud provider like AWS, we can reuse same IAM role and policy with multiple workflow and repos, because the policy is straightforward and simple. If GitHub Actions provide
repository_nameclaim, we can restrict write access to a Docker registry with the same name.All reactions