diff --git a/dist/index.js b/dist/index.js index a5250f6..2a05b01 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2623,7 +2623,7 @@ if (!!core.getInput('username') || !!core.getInput('password')) { } if (!!core.getInput('bearerToken')) { - headers['Authentication'] = `Bearer ${core.getInput('bearerToken')}`; + headers['Authorization'] = `Bearer ${core.getInput('bearerToken')}`; } const instanceConfig = { diff --git a/package.json b/package.json index 93dd8fd..2b469e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "http-request-action", - "version": "1.0.0", + "version": "1.3.0", "description": "", "main": "src/index.js", "private": false, diff --git a/src/index.js b/src/index.js index 44a22bb..2200c9c 100644 --- a/src/index.js +++ b/src/index.js @@ -27,7 +27,7 @@ if (!!core.getInput('username') || !!core.getInput('password')) { } if (!!core.getInput('bearerToken')) { - headers['Authentication'] = `Bearer ${core.getInput('bearerToken')}`; + headers['Authorization'] = `Bearer ${core.getInput('bearerToken')}`; } const instanceConfig = {