Skip to content

Commit

Permalink
Restrict OIDC role assumption to debugger-* tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark R. Tuttle committed Nov 11, 2022
1 parent d7def9d commit 6a48f72
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/cloudformation/token.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Parameters:
Type: String
Description: GitHub repository for the cbmc-proof-debugger
Default: cbmc-proof-debugger
PublicationTag:
Type: String
Description: GitHub tag triggering the GitHub publication workflow
Default: debugger-*

Resources:

Expand Down Expand Up @@ -44,7 +48,7 @@ Resources:
token.actions.githubusercontent.com:aud: sts.amazonaws.com
StringLike:
token.actions.githubusercontent.com:sub:
!Sub repo:${GithubRepoOrganization}/${GithubRepoName}:*
!Sub repo:${GithubRepoOrganization}/${GithubRepoName}:refref:refs/tags/${PublicationTag}

Policies:
- PolicyName: PublisherTokenAccess
Expand Down

0 comments on commit 6a48f72

Please sign in to comment.