Skip to content

Commit 48fedc5

Browse files
authored
fix(ghes): Adds header for preview API (#481)
1 parent 790971c commit 48fedc5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

modules/runners/lambdas/runners/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"dependencies": {
2727
"@octokit/auth-app": "^2.10.5",
2828
"@octokit/rest": "^18.0.12",
29-
"@octokit/types": "^6.1.1",
29+
"@octokit/types": "^6.3.2",
3030
"@types/aws-lambda": "^8.10.70",
3131
"@types/express": "^4.17.11",
3232
"@types/node": "^14.14.21",

modules/runners/lambdas/runners/src/scale-runners/gh-auth.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export async function createGithubAuth(
5151
if (ghesApiUrl) {
5252
authOptions.request = request.defaults({
5353
baseUrl: ghesApiUrl,
54+
mediaType: { previews: ['antiope'] }
5455
});
5556
}
5657
return await createAppAuth(authOptions)({ type: authType });

0 commit comments

Comments
 (0)