Skip to content

Commit 5a40f25

Browse files
committed
ci: Consolidate permissions at workflow level
Standardize on a single workflow-level permissions block per workflow rather than a mix of workflow- and job-level declarations. Where a job declared its own block, the workflow-level block is the union of what every job needs, since job-level permissions replace workflow-level rather than merging with it. Claude-Session: https://claude.ai/code/session_01Rg3UBFSnmKMPQLNpNKkn8d
1 parent 8c606c6 commit 5a40f25

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ concurrency:
2525
group: release-${{ github.ref }}
2626
cancel-in-progress: true
2727

28+
permissions:
29+
contents: write
30+
id-token: write
31+
2832
jobs:
2933
release:
3034
name: Build and Publish to PyPI
3135
runs-on: ubuntu-latest
32-
permissions:
33-
contents: write
34-
id-token: write
3536

3637
steps:
3738
- name: Validate confirmation

0 commit comments

Comments
 (0)