Skip to content

Commit b9f7dbb

Browse files
fix: add missing id-token permissions to release.yml template (#717)
## PR Checklist - [x] Addresses an existing open issue: fixes #716 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/template-typescript-node-package/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/template-typescript-node-package/blob/main/.github/CONTRIBUTING.md) were taken ## Overview It was included in the original PR but I'd never added it to the template.
1 parent 2d722ca commit b9f7dbb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/steps/writing/creation/dotGitHub/createWorkflowFile.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ interface WorkflowFileOn {
2727

2828
interface WorkflowFilePermissions {
2929
contents?: string;
30+
"id-token"?: string;
3031
"pull-requests"?: string;
3132
}
3233

src/steps/writing/creation/dotGitHub/workflows.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ export function createWorkflows(options: Options) {
158158
},
159159
permissions: {
160160
contents: "write",
161+
"id-token": "write",
161162
},
162163
steps: [
163164
{

0 commit comments

Comments
 (0)