This commit is contained in:
mahabaleshwars 2025-09-17 20:15:49 +02:00 committed by GitHub
commit f0b0835372
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 862 additions and 312 deletions

View file

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