mirror of
https://github.com/Azure/setup-helm.git
synced 2025-09-17 17:36:32 +00:00
Adding auth header
This commit is contained in:
@ -132,6 +132,7 @@ function getLatestHelmVersionFor(type) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
console.log("Running graphql");
|
||||
console.log(type);
|
||||
const token = core.getInput('token', { 'required': true });
|
||||
const versions = yield graphql_1.graphql(`
|
||||
repository(name:"helm"
|
||||
owner:"helm") {
|
||||
@ -142,7 +143,11 @@ function getLatestHelmVersionFor(type) {
|
||||
}
|
||||
}
|
||||
}
|
||||
`);
|
||||
`, {
|
||||
headers: {
|
||||
authorization: token
|
||||
}
|
||||
});
|
||||
console.log(versions);
|
||||
return stableHelmVersion;
|
||||
});
|
||||
|
Reference in New Issue
Block a user