Skip to content

Commit f9cbdb4

Browse files
committed
encode token
1 parent 6f11be4 commit f9cbdb4

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
@@ -57,6 +57,5 @@ jobs:
5757
with:
5858
org: ${{ github.repository_owner }}
5959
repo: ${{ github.repository }}
60-
branch: 'going-secretless'
6160
issue: '-1'
6261
duration: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.duration || 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)