ci: set explicit User-Agent for Gitea API calls

This commit is contained in:
2026-05-02 22:32:36 +02:00
parent 68d949aa5b
commit 3c87501c40
+2
View File
@@ -200,6 +200,7 @@ jobs:
"Authorization": f"{auth_scheme} {token}", "Authorization": f"{auth_scheme} {token}",
"Content-Type": "application/json", "Content-Type": "application/json",
"Accept": "application/json", "Accept": "application/json",
"User-Agent": "GitHubActions-GiteaReleaseSync/1.0",
}, },
) )
with urllib.request.urlopen(req) as resp: with urllib.request.urlopen(req) as resp:
@@ -315,6 +316,7 @@ jobs:
"Authorization": f"{auth_scheme} {token}", "Authorization": f"{auth_scheme} {token}",
"Content-Type": "application/json", "Content-Type": "application/json",
"Accept": "application/json", "Accept": "application/json",
"User-Agent": "GitHubActions-GiteaReleaseSync/1.0",
}, },
) )
with urllib.request.urlopen(req) as resp: with urllib.request.urlopen(req) as resp: