mirror of
https://github.com/actions/setup-python.git
synced 2025-08-27 11:14:15 +00:00
Pass thetoken
input through on GHES
This commit is contained in:
parent
813f9b1556
commit
10cd86d9dc
52409
dist/cache-save/index.js
vendored
52409
dist/cache-save/index.js
vendored
File diff suppressed because one or more lines are too long
64299
dist/setup/index.js
vendored
64299
dist/setup/index.js
vendored
File diff suppressed because one or more lines are too long
@ -3,10 +3,10 @@ import * as core from '@actions/core';
|
|||||||
import * as tc from '@actions/tool-cache';
|
import * as tc from '@actions/tool-cache';
|
||||||
import * as exec from '@actions/exec';
|
import * as exec from '@actions/exec';
|
||||||
import {ExecOptions} from '@actions/exec/lib/interfaces';
|
import {ExecOptions} from '@actions/exec/lib/interfaces';
|
||||||
import {IS_WINDOWS, IS_LINUX, isGhes} from './utils';
|
import {IS_WINDOWS, IS_LINUX} from './utils';
|
||||||
|
|
||||||
const TOKEN = core.getInput('token');
|
const TOKEN = core.getInput('token');
|
||||||
const AUTH = !TOKEN || isGhes() ? undefined : `token ${TOKEN}`;
|
const AUTH = !TOKEN ? undefined : `token ${TOKEN}`;
|
||||||
const MANIFEST_REPO_OWNER = 'actions';
|
const MANIFEST_REPO_OWNER = 'actions';
|
||||||
const MANIFEST_REPO_NAME = 'python-versions';
|
const MANIFEST_REPO_NAME = 'python-versions';
|
||||||
const MANIFEST_REPO_BRANCH = 'main';
|
const MANIFEST_REPO_BRANCH = 'main';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user