From bee815e999a916e99fe2acf0c9d5b688a1fcb353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20Sim=C3=B5es?= Date: Thu, 23 Dec 2021 17:49:46 -0300 Subject: [PATCH] Get token from workflow inputs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gustavo Simões --- dist/index.js | 4 ++-- src/index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index d1f4779..e344e6d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4774,7 +4774,7 @@ function getLastCommit(user, repo, token) { method: "get", url: url, headers: { - Authorization: "Bearer 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", + Authorization: `Bearer ${token}`, }, }; @@ -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, diff --git a/src/index.js b/src/index.js index 1397cd7..2ddca5e 100644 --- a/src/index.js +++ b/src/index.js @@ -37,7 +37,7 @@ function getLastCommit(user, repo, token) { method: "get", url: url, headers: { - Authorization: "Bearer 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", + Authorization: `Bearer ${token}`, }, }; @@ -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,