Skip to content

Commit

Permalink
Add informational log messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jul 24, 2023
1 parent 258b0ea commit 1a403e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/create-release.yml
Expand Up @@ -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)
Expand Down

0 comments on commit 1a403e4

Please sign in to comment.