Skip to content

Commit f0f0a0e

Browse files
author
FOUCAULT Jéremie
committed
fix: use bearer auth
1 parent 981ba04 commit f0f0a0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

__tests__/helpers/octokit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ export async function createRealOctokit(): Promise<OctokitRestApi> {
358358
const OctokitWithPaginateAndRest = realOctokit.Octokit.plugin(restEndpointMethods, paginateRest);
359359

360360
return new OctokitWithPaginateAndRest({
361-
auth: `token ${process.env.GITHUB_TOKEN}`,
361+
auth: `Bearer ${process.env.GITHUB_TOKEN}`,
362362
userAgent: '[octokit] terraform-module-releaser-ci-test',
363363
});
364364
}

src/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function initializeContext(): Context {
126126
repoUrl: `${serverUrl}/${owner}/${repo}`,
127127
octokit: new OctokitRestApi({
128128
baseUrl: apiUrl,
129-
auth: `token ${config.githubToken}`,
129+
auth: `Bearer ${config.githubToken}`,
130130
userAgent: `[octokit] terraform-module-releaser/${version} (${homepage})`,
131131
}),
132132
prNumber: payload.pull_request.number,

0 commit comments

Comments
 (0)