mirror of
https://github.com/Azure/setup-helm.git
synced 2026-04-06 22:49:27 +00:00
Adding auth header
This commit is contained in:
parent
e7eef55398
commit
dd82509766
3 changed files with 17 additions and 2 deletions
|
|
@ -109,6 +109,7 @@ async function downloadHelm(version: string): Promise<string> {
|
|||
async function getLatestHelmVersionFor(type) {
|
||||
console.log("Running graphql")
|
||||
console.log(type)
|
||||
const token = core.getInput('token', { 'required': true });
|
||||
const versions = await graphql(
|
||||
`
|
||||
repository(name:"helm"
|
||||
|
|
@ -120,7 +121,12 @@ async function getLatestHelmVersionFor(type) {
|
|||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
`,
|
||||
{
|
||||
headers: {
|
||||
authorization: token
|
||||
}
|
||||
}
|
||||
);
|
||||
console.log(versions);
|
||||
return stableHelmVersion;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue