We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ad7e82 commit ba99fecCopy full SHA for ba99fec
1 file changed
scripts/setup-repo.ps1
@@ -127,10 +127,12 @@ function Setup-Repository {
127
Write-Host ""
128
129
Write-Host "4. Disabling Dependabot..." -ForegroundColor Yellow
130
+ $ErrorActionPreference = "Continue"
131
gh api "repos/$FullRepo/vulnerability-alerts" -X DELETE 2>$null
132
Write-Host " - Vulnerability alerts: disabled" -ForegroundColor Green
133
gh api "repos/$FullRepo/automated-security-fixes" -X DELETE 2>$null
134
Write-Host " - Automated security fixes: disabled" -ForegroundColor Green
135
+ $ErrorActionPreference = "Stop"
136
137
138
Write-Host "Done! Repository $FullRepo is configured." -ForegroundColor Cyan
0 commit comments