Introduce external repository token
This commit is contained in:
parent
a0c4707dcc
commit
90d1a31dd4
22 changed files with 72 additions and 41 deletions
2
lib/init-action.js
generated
2
lib/init-action.js
generated
|
|
@ -49,6 +49,7 @@ async function sendSuccessStatusReport(startedAt, config, toolsVersion) {
|
|||
await actionsUtil.sendStatusReport(statusReport);
|
||||
}
|
||||
async function run() {
|
||||
var _a;
|
||||
const startedAt = new Date();
|
||||
const logger = logging_1.getActionsLogger();
|
||||
let config;
|
||||
|
|
@ -56,6 +57,7 @@ async function run() {
|
|||
let toolsVersion;
|
||||
const apiDetails = {
|
||||
auth: actionsUtil.getRequiredInput("token"),
|
||||
externalRepoAuth: (_a = actionsUtil.getOptionalInput("external-repository-token"), (_a !== null && _a !== void 0 ? _a : actionsUtil.getRequiredInput("token"))),
|
||||
url: actionsUtil.getRequiredEnvParam("GITHUB_SERVER_URL"),
|
||||
};
|
||||
const gitHubVersion = await util_1.getGitHubVersion(apiDetails);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue