Add translate-issues workflow configuration#4264
Conversation
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: dromara/issues-translate-action@v2.7 | ||
| with: | ||
| IS_MODIFY_TITLE: false |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 6 months ago
To resolve the issue, explicitly define a permissions block at the workflow level (before jobs:) in .github/workflows/translate-issues.yml. This block should specify least-privilege permissions required for the workflow actions. For this workflow, which automates translation for issues and issue comments, the recommended minimal permissions are issues: write, allowing issue modifications but denying all other repository access by default. Place the permissions key directly beneath name: (line 2), before the on: trigger. No additional imports/methods/definitions are required.
| @@ -1,4 +1,6 @@ | ||
| name: Auto Translate Issues | ||
| permissions: | ||
| issues: write | ||
|
|
||
| on: | ||
| issue_comment: |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
🔗 Related PR link
🐞 Bugserver case id
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
copilot:summary
🔍 Walkthrough
copilot:walkthrough