Skip to content

Commit 0571377

Browse files
ci: limit release contents write to publish job and fix tag docs
1 parent 94aa46b commit 0571377

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Release
22

3-
# Fires when an annotated version tag is pushed (for example v0.2.1).
3+
# Fires when a version tag is pushed (for example v0.2.1).
44
# Builds hatchling wheel + sdist and a Windows PyInstaller zip, then attaches
55
# all three as GitHub Release assets via softprops/action-gh-release.
66
#
@@ -18,7 +18,7 @@ on:
1818
- "v*"
1919

2020
permissions:
21-
contents: write
21+
contents: read
2222

2323
concurrency:
2424
group: release-${{ github.ref }}
@@ -101,6 +101,8 @@ jobs:
101101
name: Publish GitHub Release assets
102102
needs: [build-python, build-windows]
103103
runs-on: ubuntu-latest
104+
permissions:
105+
contents: write
104106
steps:
105107
- name: Download Python distributables
106108
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ Notable changes will be documented in **[CHANGELOG.md](CHANGELOG.md)** following
265265

266266
### GitHub Releases
267267

268-
Pushing an annotated tag matching `v*` (for example `v0.2.1`) runs [`.github/workflows/release.yml`](.github/workflows/release.yml), which attaches three assets to the GitHub Release:
268+
Pushing a tag matching `v*` (for example `v0.2.1`) runs [`.github/workflows/release.yml`](.github/workflows/release.yml), which attaches three assets to the GitHub Release:
269269

270270
| Asset | Contents |
271271
|---|---|

0 commit comments

Comments
 (0)