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

This reverts commit 7e4abae4438b857787604dd38de046ece4a21416.
This commit is contained in:
Brian Cristante
2022-06-16 11:08:06 -04:00
committed by GitHub
parent 8fb4cbf7c8
commit cf86e08a31
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';