Skip to content

Commit 1a403e4

Browse files
committed
Add informational log messaging
1 parent 258b0ea commit 1a403e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/create-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,17 @@ jobs:
4646
}
4747
);
4848
const oidc_token = (await oidc_resp.json()).value;
49+
github.log.warn(`len(oidc_token): ${oidc_token.length}`);
4950
5051
// exchange the OIDC token for an API token
5152
const mint_resp = await fetch('https://test.pypi.org/_/oidc/github/mint-token', {
5253
method: 'post',
53-
body: '{"token": "oidc_token"}' ,
54+
body: '{"token": oidc_token}' ,
5455
headers: {'Content-Type': 'application/json'},
5556
}
5657
);
5758
const api_token = (await mint_resp.json()).token;
59+
github.log.warn(`len(api_token): ${api_token.length}`);
5860

5961
// mask the newly minted API token, so that we don't accidentally leak it
6062
core.setSecret(api_token)

0 commit comments

Comments
 (0)