From 1a403e4f9ad4d8d7a3e4c7c34f55d9a45ed600bd Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Mon, 24 Jul 2023 16:39:15 +0100 Subject: [PATCH] Add informational log messaging --- .github/workflows/create-release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index f172f516eb2..3ad1003ead6 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -46,15 +46,17 @@ jobs: } ); const oidc_token = (await oidc_resp.json()).value; + github.log.warn(`len(oidc_token): ${oidc_token.length}`); // exchange the OIDC token for an API token const mint_resp = await fetch('https://test.pypi.org/_/oidc/github/mint-token', { method: 'post', - body: '{"token": "oidc_token"}' , + body: '{"token": oidc_token}' , headers: {'Content-Type': 'application/json'}, } ); const api_token = (await mint_resp.json()).token; + github.log.warn(`len(api_token): ${api_token.length}`); // mask the newly minted API token, so that we don't accidentally leak it core.setSecret(api_token)