Skip to content

Commit

Permalink
Merge pull request #5 from fjogeleit/fix-bearer-token-header
Browse files Browse the repository at this point in the history
Fix Header Name for Bearer Authorization
  • Loading branch information
fjogeleit authored May 6, 2020
2 parents f7cd714 + 089a111 commit 5d7e3ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "http-request-action",
"version": "1.0.0",
"version": "1.3.0",
"description": "",
"main": "src/index.js",
"private": false,
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 5d7e3ef

Please sign in to comment.