Skip to content

Commit 397dd72

Browse files
Copilotraykao
andcommitted
Add explicit permissions to Copilot workflows for repo read and issue creation
Co-authored-by: raykao <860691+raykao@users.noreply.github.com>
1 parent 9a3fcea commit 397dd72

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/copilot.generate-docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
jobs:
1010
generate-docs:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read # Required to read repository content and commit diffs
14+
issues: write # Required to create GitHub issues for documentation recommendations
1215

1316
steps:
1417
- name: Checkout code

.github/workflows/copilot.generate-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
jobs:
1515
generate-tests:
1616
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read # Required to read repository content and commit diffs
19+
issues: write # Required to create GitHub issues for test coverage recommendations
1720

1821
steps:
1922
- name: Checkout code

0 commit comments

Comments
 (0)