This repository was archived by the owner on Oct 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 5
5
push :
6
6
branches :
7
7
- main
8
+ permissions :
9
+ id-token : write
10
+ contents : write
8
11
jobs :
9
12
deploy :
10
13
name : Publish to ECR
15
18
uses : actions/checkout@v2
16
19
17
20
- name : Configure AWS credentials from Test account
18
- uses : aws-actions/configure-aws-credentials@v1
21
+ uses : aws-actions/configure-aws-credentials@b8c74de
19
22
with :
20
23
role-to-assume : ${{ secrets.ROLE_TO_ASSUME }}
21
24
aws-region : us-west-2
Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ export class GitHubActionsAwsOidcConnect extends cdk.Construct {
35
35
// Create an OIDC Provider for GitHub Actions
36
36
const githubOidcProvider = new iam . OpenIdConnectProvider ( scope , 'github-oidc-provider' , {
37
37
url : 'https://vstoken.actions.githubusercontent.com' ,
38
- clientIds : repos . map ( ( repo ) => { return `https://github.com/${ repo } ` ; } ) ,
38
+ //clientIds: repos.map((repo) => { return `https://github.com/${repo}`; }),
39
+ clientIds : [ 'sigstore' ] ,
39
40
} ) ;
40
41
41
42
// Create an IAM role with policies provided.
You can’t perform that action at this time.
0 commit comments