mirror of
https://github.com/hwchase17/langchain.git
synced 2026-04-03 10:55:08 +00:00
ci: tighten top-level release permissions to contents: read (#36404)
Tighten the top-level `permissions` default in the release workflow from `contents: write` to `contents: read`. All 8 jobs already declare their own `permissions` blocks, so this has zero functional impact — but it prevents any future job added without explicit permissions from silently inheriting write access.
This commit is contained in:
2
.github/workflows/_release.yml
vendored
2
.github/workflows/_release.yml
vendored
@@ -37,7 +37,7 @@ env:
|
||||
UV_NO_SYNC: "true"
|
||||
|
||||
permissions:
|
||||
contents: write # Required for creating GitHub releases
|
||||
contents: read # Job-level overrides grant write only where needed (mark-release)
|
||||
|
||||
jobs:
|
||||
# Build the distribution package and extract version info
|
||||
|
||||
Reference in New Issue
Block a user