Skip to content

Commit 889f68a

Browse files
authored
Update release.yml (#5)
1 parent f23697b commit 889f68a

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,16 @@ jobs:
1818
steps:
1919
- name: Harden runner
2020
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
21-
with:
22-
egress-policy: audit
2321

2422
- name: Checkout
2523
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
2624

2725
- name: Set up Python
28-
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7 # v6
26+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
2927
with:
3028
python-version: "3.12"
3129

32-
# No pip install here: use pipx with a pinned version of 'build'
30+
# Use pipx (pinned) to avoid raw pip installs in workflows
3331
- name: Install pipx + build (pinned)
3432
run: |
3533
set -euxo pipefail
@@ -49,21 +47,17 @@ jobs:
4947
name: dist
5048
path: dist/*
5149

52-
# Enable when ready to publish to PyPI with OIDC (no API token needed).
5350
publish-pypi:
54-
# Run only on tag pushes that built artifacts
5551
if: startsWith(github.ref, 'refs/tags/')
5652
needs: build
5753
runs-on: ubuntu-latest
5854
permissions:
5955
contents: read
60-
id-token: write # required for OIDC to PyPI
56+
id-token: write # OIDC for PyPI
6157

6258
steps:
6359
- name: Harden runner
6460
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
65-
with:
66-
egress-policy: audit
6761

6862
- name: Download build artifact
6963
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0

0 commit comments

Comments
 (0)