github token accept through environment variable

This commit is contained in:
mahabaleshwars 2025-07-03 14:58:30 +05:30
commit 4c9e711992
5 changed files with 7 additions and 12 deletions

View file

@ -93676,8 +93676,8 @@ function convertVersionToSemver(version) {
return mainVersion;
}
exports.convertVersionToSemver = convertVersionToSemver;
function getGitHubHttpHeaders(token) {
const resolvedToken = token || core.getInput('token');
function getGitHubHttpHeaders() {
const resolvedToken = process.env.GITHUB_TOKEN || core.getInput('token');
const auth = !resolvedToken ? undefined : `token ${resolvedToken}`;
const headers = {
accept: 'application/vnd.github.VERSION.raw'