ci: set explicit User-Agent for Gitea API calls
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user