File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515jobs :
1616 mint-token :
1717 runs-on : ubuntu-latest
18+ outputs :
19+ api-token : ${{ steps.mint-token.outputs.api-token }}
1820 steps :
1921 - name : Mint API token
2022 id : mint-token
@@ -28,15 +30,12 @@ jobs:
2830 resp=$(curl -X POST https://pypi.org/_/oidc/mint-token -d "{\"token\": \"${oidc_token}\"}")
2931 api_token=$(jq -r '.token' <<< "${resp}")
3032
31- # mask the newly minted API token, so that we don't accidentally leak it
32- echo "::add-mask::${api_token}"
33-
34- # set the environment variable for the job
35- echo "API_TOKEN=${api_token}" >> $GITHUB_ENV
33+ # see the next step in the workflow for an example of using this step output
34+ echo "api-token=${api_token}" >> "${GITHUB_OUTPUT}"
3635 publish :
3736 needs : mint-token
3837 uses : speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
3938 secrets :
4039 github_access_token : ${{ secrets.GITHUB_TOKEN }}
41- pypi_token : ${{ github.env.API_TOKEN }}
40+ pypi_token : ${{ needs.mint-token.outputs.api-token }}
4241 speakeasy_api_key : ${{ secrets.SPEAKEASY_API_KEY }}
You can’t perform that action at this time.
0 commit comments