Skip to content

Commit

Permalink
Get token from workflow inputs
Browse files Browse the repository at this point in the history
Signed-off-by: Gustavo Simões <[email protected]>
  • Loading branch information
aquelegustavo committed Dec 23, 2021
1 parent 7bd6156 commit bee815e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4774,7 +4774,7 @@ function getLastCommit(user, repo, token) {
method: "get",
url: url,
headers: {
Authorization: "Bearer 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",
Authorization: `Bearer ${token}`,
},
};

Expand All @@ -4792,7 +4792,7 @@ function updateRepository(user, repo, token, sha) {
method: "patch",
url: url,
headers: {
Authorization: "Bearer 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",
Authorization: `Bearer ${token}`,
"Content-Type": "application/json",
},
data: data,
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function getLastCommit(user, repo, token) {
method: "get",
url: url,
headers: {
Authorization: "Bearer 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",
Authorization: `Bearer ${token}`,
},
};

Expand All @@ -55,7 +55,7 @@ function updateRepository(user, repo, token, sha) {
method: "patch",
url: url,
headers: {
Authorization: "Bearer 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",
Authorization: `Bearer ${token}`,
"Content-Type": "application/json",
},
data: data,
Expand Down

0 comments on commit bee815e

Please sign in to comment.