Skip to content

Commit

Permalink
feat: Use pipx to run id
Browse files Browse the repository at this point in the history
* Requires id v1.4.0+
  • Loading branch information
matthewfeickert committed Apr 24, 2024
1 parent 0d7350d commit 8a55804
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ before_script:
- python -V
- python -m venv .venv
- source .venv/bin/activate
- python -m pip install -U pip pipx id
- python -m pip install -U pip pipx
- python -m pipx ensurepath
- python -m pip freeze

Expand Down Expand Up @@ -153,7 +153,7 @@ make_wheels:
{%- endif %}
script:
# Retrieve the OIDC token from GitLab CI/CD and exchange it for a PyPI API token
- oidc_token=$(python -m id PYPI)
- oidc_token=$(pipx run id PYPI)
- response=$(curl -X POST "${OIDC_MINT_TOKEN_URL}" -d "{\"token\":\"${oidc_token}\"}")
- api_token=$(jq --raw-output '.token' <<< "${response}")

Expand Down

0 comments on commit 8a55804

Please sign in to comment.