Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Commit 3f2400b

Browse files
committed
1 parent cc8b358 commit 3f2400b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/build-and-publish-to-ecr.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
push:
66
branches:
77
- main
8+
permissions:
9+
id-token: write
10+
contents: write
811
jobs:
912
deploy:
1013
name: Publish to ECR
@@ -15,7 +18,7 @@ jobs:
1518
uses: actions/checkout@v2
1619

1720
- name: Configure AWS credentials from Test account
18-
uses: aws-actions/configure-aws-credentials@v1
21+
uses: aws-actions/configure-aws-credentials@b8c74de
1922
with:
2023
role-to-assume: ${{ secrets.ROLE_TO_ASSUME }}
2124
aws-region: us-west-2

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ export class GitHubActionsAwsOidcConnect extends cdk.Construct {
3535
// Create an OIDC Provider for GitHub Actions
3636
const githubOidcProvider = new iam.OpenIdConnectProvider(scope, 'github-oidc-provider', {
3737
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'],
3940
});
4041

4142
// Create an IAM role with policies provided.

0 commit comments

Comments
 (0)