Files
Powershell/gitea/list-secret.ps1

15 lines
350 B
PowerShell

cls
$token = "9999999999999999999999999999999999999999"
$response = $null
$apiUrl = "https://gitea.domain/api/v1/repos/<Owner>/<name>/actions/secrets?token=$token"
$headers = @{
"accept" = "application/json"
"Content-Type" = "application/json"
}
$response = Invoke-RestMethod -Uri $apiUrl -Method GET -Headers $headers
$response