Merge pull request #5 from fjogeleit/fix-bearer-token-header

Fix Header Name for Bearer Authorization
This commit is contained in:
Frank Jogeleit 2020-05-06 20:45:21 +02:00 committed by GitHub
commit 5d7e3ef283
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View file

@ -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 = {

View file

@ -1,6 +1,6 @@
{
"name": "http-request-action",
"version": "1.0.0",
"version": "1.3.0",
"description": "",
"main": "src/index.js",
"private": false,

View file

@ -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 = {