Ajouter gitea/list-secret.ps1

This commit is contained in:
2025-08-21 07:50:22 +02:00
parent ef09f0b350
commit d866d5203e

15
gitea/list-secret.ps1 Normal file
View File

@@ -0,0 +1,15 @@
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