Add GitHub Token Support for GraalVM and Refactor Code (#849)

* Code updated to let code accept github token and refactored the code.

* github token accept through environment variable

* fix test error

* audit fix commit

* update package-lock.json

* Update GraalVM Tests

* Lint Issue Resolve

* Update Test case for Windows

* update with enhance code and test
This commit is contained in:
mahabaleshwars
2025-11-18 23:34:23 +05:30
committed by GitHub
parent 66b945764b
commit 46c56d6f92
6 changed files with 1249 additions and 353 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'
};