Skip to content

Commit

Permalink
$Env:github_api_key
Browse files Browse the repository at this point in the history
  • Loading branch information
tunisiano187-bot committed Jul 4, 2024
1 parent 71b324c commit a5cbf55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ jobs:
- name: Install Powershell Modules
run: |
Install-Module -Name PowerShellForGitHub -Force
$secureString = ("${{ secrets.AU_GITHUB_API_KEY }}" | ConvertTo-SecureString -AsPlainText -Force)
$Env:github_api_key = ${{ secrets.AU_GITHUB_API_KEY }}
$secureString = ("$Env:github_api_key" | ConvertTo-SecureString -AsPlainText -Force)
$cred = New-Object System.Management.Automation.PSCredential "username is ignored", $secureString
Set-GitHubAuthentication -Credential $cred
$secureString = $null # clear this out now that it's no longer needed
Expand Down

0 comments on commit a5cbf55

Please sign in to comment.