Skip to content

Commit

Permalink
Include the id-token for workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
scottschreckengaust committed Sep 28, 2023
1 parent 535454d commit 98ea3f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 5 additions & 8 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,16 @@ const project = new awscdk.AwsCdkConstructLibrary({
});


// (project.buildWorkflow?.["workflow"] as GithubWorkflow).file?.addOverride(
// "jobs.build.permissions.id-token",
// "write"
// );
//TODO: https://github.com/projen/projen/issues/2675
(project.buildWorkflow?.["workflow"] as GithubWorkflow).file?.addOverride(
"jobs.build.permissions.id-token",
"write"
);
(project.buildWorkflow?.["workflow"] as GithubWorkflow).file?.addOverride(
`jobs.build.steps.0.with.token`,
"${{ secrets.PROJEN_GITHUB_TOKEN }}"
);





//console.log(project.buildWorkflow?.["workflow"]);

//console.log((project.buildWorkflow?.["workflow"] as GithubWorkflow));
Expand Down

0 comments on commit 98ea3f7

Please sign in to comment.