Skip to content

Commit 701da64

Browse files
committed
feat: add permissions for issue translation workflow
1 parent 92d34c3 commit 701da64

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/issue-translation.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ env:
2222
jobs:
2323
translate_and_update:
2424
runs-on: ubuntu-latest
25+
permissions:
26+
contents: read
27+
issues: write
28+
id-token: write
2529
steps:
2630
- name: Translate issue body with Claude (auto detect)
2731
id: translate
@@ -39,7 +43,7 @@ jobs:
3943
env:
4044
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
4145
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
46+
4347
- name: Update issue body with original and translation
4448
uses: actions/github-script@v7
4549
with:

0 commit comments

Comments
 (0)