Skip to content

Commit

Permalink
rights
Browse files Browse the repository at this point in the history
  • Loading branch information
tunisiano187 committed Mar 29, 2024
1 parent dcf47b7 commit 4fc0cdd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/edited-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
if: ${{ github.event.issue.state == 'open' }}
runs-on: windows-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.AU_GITHUB_API_KEY }}

steps:
- uses: actions/[email protected]
Expand Down
14 changes: 11 additions & 3 deletions scripts/Exclude-package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,19 @@ function Exclude-Package {

Write-Output "Repository : $Repository"

Install-Module PowerShellForGitHub -Force
Install-Module -Name PowerShellForGitHub -Force
$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
$cred = $null # clear this out now that it's no longer needed
Set-GitHubConfiguration -DisableTelemetry

Import-Module PowerShellForGitHub
if(!(Test-Path Env:github_api_key)) {
$Env:github_api_key = $Github_personal_token #Github personal access token
if(!(Test-Path Env:GITHUB_TOKEN)) {
$Env:GITHUB_TOKEN = $Github_personal_token #Github personal access token
}

[string]$Owner = "tunisiano187"
[string]$Repository = "Chocolatey-packages"

Expand Down

0 comments on commit 4fc0cdd

Please sign in to comment.