Skip to content

Commit

Permalink
Actually authenticate to the OpenID Connect provider
Browse files Browse the repository at this point in the history
  • Loading branch information
kb-1000 committed Nov 6, 2023
1 parent efc7765 commit 1a84c24
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/upload_dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
print("discord response:", resp.text)
if args.serverupdate:
for url in args.serverupdate:
with requests.post(
f"{os.environ['ACTIONS_ID_TOKEN_REQUEST_URL']}&audience=https://mc.pswg.dev"
) as resp:
with requests.post(f"{os.environ['ACTIONS_ID_TOKEN_REQUEST_URL']}&audience=https://mc.pswg.dev", headers={"Authorization": "Bearer {os.environ['ACTIONS_ID_TOKEN_REQUEST_TOKEN']}"}) as resp:
resp.raise_for_status()
token = resp.text
with open(file, "rb") as fp:
Expand Down

0 comments on commit 1a84c24

Please sign in to comment.