Skip to content

Commit

Permalink
update environment based deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
sg committed Jun 24, 2024
1 parent ca7d298 commit ce03a9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ These instructions will get you a copy of this project up and running in your ow

1. Open the `github-actions-role-stack.ts` file.
2. Add this codes repository that you created to the `allowedRepositories` array in the `github-actions-role-stack.ts` file.
- Use this template: `'repo:USER_OR_ORG_NAME/THIS_PROJECTS_REPO:*'`
- Use this template: `'repo:USER_OR_ORG_NAME/THIS_PROJECTS_REPO:environment:*'`
3. Add any repos you want to allow to be deployed via Github actions, new line for each repo to the `allowedRepositories` array in the `github-actions-role-stack.ts` file.
- Use this template: `repo:USER_OR_ORG_NAME/REPO:*'`
- Use this template: `repo:USER_OR_ORG_NAME/REPO:environment:*'`

### Bootstrap the project with CDK
1. From your local machine, bootstrap the project.
Expand Down
2 changes: 1 addition & 1 deletion lib/github-actions-role-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class GithubActionsRoleStack extends cdk.Stack {
'token.actions.githubusercontent.com:sub': [
// Sets the Username/Organization, Repo, that AWS will allow to be deployed from.
// Only the specific repo will be allowed, using temporary keys with OIDC.
// 'repo:<USER/ORG_NAME>/<REPO>:*'
// 'repo:<USER/ORG_NAME>/<REPO>:environment:*'
'repo:sghost13/gh-aws-deploy-oidc:environment:*'
]
},
Expand Down

0 comments on commit ce03a9b

Please sign in to comment.