Skip to content

Commit 57afd3b

Browse files
Fix token masking in Action-Test workflow to use correct match variable
1 parent 1382384 commit 57afd3b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/Action-Test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ jobs:
5454
Write-Debug "Name: $name"
5555
Write-Debug "Value: $value"
5656
if ($value -match '(?i)AUTHORIZATION:\s*(?<scheme>[^\s]+)\s+(?<token>.*)') {
57-
$secret = $matches['token']
58-
Add-GitHubMask -Value $secret
57+
Add-GitHubMask -Value $matches['token']
5958
}
6059
$config += @{
6160
($name.Trim()) = ($value.Trim())

0 commit comments

Comments
 (0)