File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ import logger from "@root/logger/logger"
1717import { GitCommitResult } from "@root/types/gitfilesystem"
1818import { GitHubRepoInfo , RawGitTreeEntry , RepoState } from "@root/types/github"
1919
20+ import { E2E_TEST_GH_TOKEN } from "../middlewareServices/AuthenticationMiddlewareService"
21+
2022import * as ReviewApi from "./review"
2123
2224export default class GitHubService {
@@ -861,9 +863,9 @@ export default class GitHubService {
861863 const endpointTemplate = urlTemplate . parse ( `{siteName}` )
862864 const endpoint = endpointTemplate . expand ( { siteName } )
863865
864- // Privatising a repo is restricted to repo admins - an admin token will be inserted in via our axios interceptor
866+ // Privatising a repo is restricted to repo admins - our main admin token is used
865867 const headers = {
866- Authorization : "" ,
868+ Authorization : `token ${ E2E_TEST_GH_TOKEN } ` ,
867869 "Content-Type" : "application/json" ,
868870 }
869871
You can’t perform that action at this time.
0 commit comments