Skip to content

Commit 852b0e6

Browse files
authored
fix: gh role permissions (#10)
1 parent 28d0180 commit 852b0e6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.projenrc.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ const project = new awscdk.AwsCdkConstructLibrary({
3434
},
3535
},
3636
workflowNodeVersion: '20',
37+
// Need to specify for the `package:python` command to be available to be used locally. The `release.yml` GH Workflow
38+
// will fail to publish as these secrets have not been set.
39+
// TODO: Change the workflow to not publish to PyPi
3740
publishToPypi: {
3841
distName: 'recipes_dlz',
3942
module: 'recipes_dlz',

src/stacks/organization/management-stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export class ManagementStack extends DlzStack {
254254
const role = new iam.Role(this, this.resourceName('git-hub-deploy-role'), {
255255
roleName: this.resourceName('git-hub-deploy-role'),
256256
assumedBy: new iam.WebIdentityPrincipal(githubProvider.openIdConnectProviderArn, conditions),
257-
// managedPolicies: [iam.ManagedPolicy.fromAwsManagedPolicyName('AdministratorAccess')],
257+
managedPolicies: [iam.ManagedPolicy.fromAwsManagedPolicyName('AdministratorAccess')],
258258
inlinePolicies: {
259259
'cdk-assume': new iam.PolicyDocument({
260260
statements: [

0 commit comments

Comments
 (0)