Skip to content

Commit 1b957e4

Browse files
committed
actions: use environment scoped secret for nightly wheels
1 parent 380b33d commit 1b957e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/buildwheel.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,8 @@ jobs:
438438
# Run on push/merge to main
439439
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
440440
runs-on: ubuntu-latest
441+
environment:
442+
name: anaconda_nightly
441443
permissions: {}
442444

443445
steps:
@@ -457,7 +459,7 @@ jobs:
457459
artifacts_path: dist
458460
# This token is generated from anaconda.org
459461
# https://github.com/scientific-python/upload-nightly-action/issues/111
460-
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }} # zizmor: ignore[secrets-outside-env]
462+
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN_V2 }}
461463

462464
# Deploy wheels and sdist to PyPI
463465

0 commit comments

Comments
 (0)