Skip to content

Commit fd8003b

Browse files
Copilotdanroth27
andcommitted
Add explicit permissions to workflow for security best practices
Co-authored-by: danroth27 <[email protected]>
1 parent aca8c97 commit fd8003b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/create-docs-issue.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
runs-on: ubuntu-latest
1818
# Only run if the issue has the "Breaking change" label
1919
if: contains(github.event.issue.labels.*.name, 'Breaking change')
20+
# Limit permissions to only what's needed
21+
permissions:
22+
issues: write
23+
contents: read
2024
# Prevent concurrent runs for the same issue to avoid race conditions
2125
concurrency:
2226
group: docs-issue-${{ github.event.issue.number }}

0 commit comments

Comments
 (0)