Skip to content

Commit f48a94a

Browse files
author
ulises-jeremias
committed
fix(ci): read dist secrets from the pypi environment
Docker, Homebrew notify, and AUR publish already store credentials as environment secrets on `pypi`; wire environment: pypi so jobs can see them.
1 parent 3550cfa commit f48a94a

4 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/notify-homebrew.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
notify:
2121
name: Dispatch to homebrew-tap
2222
runs-on: ubuntu-latest
23+
environment: pypi
2324
steps:
2425
- name: Resolve version
2526
id: version

.github/workflows/publish-aur.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
aur:
2121
name: Update AUR package
2222
runs-on: ubuntu-latest
23+
environment: pypi
2324
steps:
2425
- name: Resolve version
2526
id: version

.github/workflows/publish-docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
docker:
2121
name: Build and push Docker image
2222
runs-on: ubuntu-latest
23+
environment: pypi
2324
steps:
2425
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2526
with:

docs/DISTRIBUTION_SETUP.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
| **AUR** | `publish-aur.yml` | `AUR_SSH_PRIVATE_KEY`, `AUR_REPO_TOKEN` |
1010
| **Homebrew** | `notify-homebrew.yml``homebrew-tap` | `HOMEBREW_TAP_TOKEN` |
1111

12-
Configure secrets under **Settings → Secrets and variables → Actions**.
12+
Configure secrets under **Settings → Environments → `pypi` → Environment secrets**
13+
(not repository Action secrets). Release, Docker, AUR, and Homebrew jobs all use
14+
`environment: pypi`.
1315

1416
## PyPI Trusted Publishing
1517

0 commit comments

Comments
 (0)