Skip to content

Commit

Permalink
fix: add ecr auth to GitHub Actions role (#361)
Browse files Browse the repository at this point in the history
Need to give permissions for the GitHub Actions role to read the ECR
authorization token such that it can auth to push and pull from the
repo.

Signed-off-by: Gavin Inglis <giinglis@amazon.com>
  • Loading branch information
ginglis13 authored Jul 27, 2023
1 parent 613dca5 commit a8b96ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/continuous-integration-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export class ContinuousIntegrationStack extends cdk.Stack {

const repo = props.rootfsEcrRepository;
repo.grantPullPush(githubActionsRole);
ecr.AuthorizationToken.grantRead(githubActionsRole)

new CloudfrontCdn(this, 'DependenciesCloudfrontCdn', {
bucket
Expand Down

0 comments on commit a8b96ab

Please sign in to comment.