1
0
Fork 0
mirror of https://github.com/actions/setup-python.git synced 2025-06-08 14:37:00 +09:00

Revert "Pass the token input through on GHES (#427)" (#437)

This reverts commit 7e4abae443.
This commit is contained in:
Brian Cristante 2022-06-16 11:08:06 -04:00 committed by GitHub
parent 8fb4cbf7c8
commit cf86e08a31
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 14 deletions

View file

@ -3,10 +3,10 @@ import * as core from '@actions/core';
import * as tc from '@actions/tool-cache';
import * as exec from '@actions/exec';
import {ExecOptions} from '@actions/exec/lib/interfaces';
import {IS_WINDOWS, IS_LINUX} from './utils';
import {IS_WINDOWS, IS_LINUX, isGhes} from './utils';
const TOKEN = core.getInput('token');
const AUTH = !TOKEN ? undefined : `token ${TOKEN}`;
const AUTH = !TOKEN || isGhes() ? undefined : `token ${TOKEN}`;
const MANIFEST_REPO_OWNER = 'actions';
const MANIFEST_REPO_NAME = 'python-versions';
const MANIFEST_REPO_BRANCH = 'main';