-
Notifications
You must be signed in to change notification settings - Fork 0
fix: move workflow permissions to top #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -3,14 +3,15 @@ name: Release | |||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||||
| pull_request: | ||||||||||||||||||||||||||||
| types: [ closed ] | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| permissions: | ||||||||||||||||||||||||||||
| contents: write | ||||||||||||||||||||||||||||
| pull-requests: write | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||
| release: | ||||||||||||||||||||||||||||
|
Comment on lines
+6
to
12
|
||||||||||||||||||||||||||||
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| release: | |
| jobs: | |
| release: | |
| permissions: | |
| contents: write | |
| pull-requests: write |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -46,14 +46,15 @@ name: Release | |||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||||
| pull_request: | ||||||||||||||||||||||||||||
| types: [ closed ] | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
Copilot
AI
Apr 1, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The YAML example now sets permissions at the workflow level, but the later "## Permissions" section still says to set permissions under the job's permissions key. Please update that text to reflect that workflow-level permissions is also valid (or adjust the example back to job-level) so the README stays consistent.
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| release: | |
| jobs: | |
| release: | |
| permissions: | |
| contents: write | |
| pull-requests: write |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This blank line contains trailing whitespace. Please remove the extra spaces to avoid churn in diffs and potential whitespace/linting failures.