Added back the token in a usable way

This commit is contained in:
Auto Rebase
2025-01-09 13:53:58 +01:00
parent f61c87e29e
commit a40bcaba80
3 changed files with 9 additions and 3 deletions

6
app.ts
View File

@@ -8,7 +8,9 @@ const IGNORED_BRANCHES: string[] = core.getInput('branchesToIgnore', { required:
const mainBranch: string = `origin/${ core.getInput('mainBranch', { required: false }) }`;
const { CI_TOKEN, GITHUB_SERVER_URL } = process.env;
const CI_TOKEN: string = core.getInput('ciToken', { required: false });
const { GITHUB_SERVER_URL } = process.env;
enum Action {
Rebase = 0,
@@ -228,7 +230,7 @@ const setupCIToken = async () => {
"config",
"--local",
"--unset",
`http.https://${ GITHUB_SERVER_URL }/.extraheader`
`http.https://${ GITHUB_SERVER_URL.replace(/https?:\/\//, "") }/.extraheader`
]);
}