Skip to content

Commit 3f14d5a

Browse files
committed
encode token
1 parent ab1e3b4 commit 3f14d5a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.github/workflows/quest-bulk.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,5 @@ jobs:
5959
with:
6060
org: ${{ github.repository_owner }}
6161
repo: ${{ github.repository }}
62-
branch: 'going-secretless'
6362
issue: '-1'
6463
duration: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.duration || github.event.schedule == '0 9 6 * *' && -1 || 5 }}

actions/sequester/Quest2GitHub/AzDoClientServices/QuestClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public QuestClient(string token, string org, string project, bool useBearerToken
4545
_client.DefaultRequestHeaders.Accept.Add(
4646
new MediaTypeWithQualityHeaderValue(MediaTypeNames.Application.Json));
4747
_client.DefaultRequestHeaders.Authorization = useBearerToken ?
48-
new AuthenticationHeaderValue("Bearer", token) :
48+
new AuthenticationHeaderValue("Bearer", Convert.ToBase64String(Encoding.ASCII.GetBytes($":{token}"))) :
4949
new AuthenticationHeaderValue("Basic",
5050
Convert.ToBase64String(Encoding.ASCII.GetBytes($":{token}")));
5151

0 commit comments

Comments
 (0)