Skip to content

Commit

Permalink
Merge pull request #10 from nxtlytics/thunder-github-automation-fix
Browse files Browse the repository at this point in the history
Update thunder_github_automation.py
  • Loading branch information
lonnix authored Mar 22, 2022
2 parents 9a61c13 + 9a70902 commit a651e0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thunder_github_automation/thunder_github_automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def _create_role(self, provider_arn: str):
"token.actions.githubusercontent.com:aud": "sts.amazonaws.com"
},
"StringLike": {
"token.actions.githubusercontent.com:sub": f"repo:{self.organization}/{self.repository}"
"token.actions.githubusercontent.com:sub": f"repo:{self.organization}/{self.repository}:*"
}
}
}
Expand Down Expand Up @@ -162,7 +162,7 @@ def setup_github_oidc(self):

@click.command()
@click.option('--repo', required=True, help='GitHub repository name to grant AWS access')
@click.option('--org', required=True, help='GitHub organization where the repository exists')
@click.option('--org', required=True, help='GitHub organization where the repository exists. This is case sensitive')
@click.option('--role-name', '-r', help='Optional name of the IAM role to create')
@click.option('-v', '--verbose', count=True)
def cli(repo, org, verbose, role_name):
Expand Down

0 comments on commit a651e0f

Please sign in to comment.