Skip to content

Add translate-issues workflow configuration#4264

Merged
xuefei1313 merged 1 commit intodevelopfrom
feat/add-translate-issue-workflow
Oct 27, 2025
Merged

Add translate-issues workflow configuration#4264
xuefei1313 merged 1 commit intodevelopfrom
feat/add-translate-issue-workflow

Conversation

@xuefei1313
Copy link
Copy Markdown
Contributor

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Refactoring
  • Update dependency
  • Code style optimization
  • Test Case
  • Branch merge
  • Release
  • Site / documentation update
  • Demo update
  • Workflow
  • Other (about what?)

🔗 Related issue link

🔗 Related PR link

🐞 Bugserver case id

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

🚀 Summary

copilot:summary

🔍 Walkthrough

copilot:walkthrough

@github-actions github-actions Bot added the chore label Oct 27, 2025
@xuefei1313 xuefei1313 merged commit efae716 into develop Oct 27, 2025
6 of 8 checks passed
@xuefei1313 xuefei1313 deleted the feat/add-translate-issue-workflow branch October 27, 2025 06:46
Comment on lines +11 to +15
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

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}

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.

Suggested changeset 1
.github/workflows/translate-issues.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/translate-issues.yml b/.github/workflows/translate-issues.yml
--- a/.github/workflows/translate-issues.yml
+++ b/.github/workflows/translate-issues.yml
@@ -1,4 +1,6 @@
 name: Auto Translate Issues
+permissions:
+  issues: write
 
 on: 
   issue_comment: 
EOF
@@ -1,4 +1,6 @@
name: Auto Translate Issues
permissions:
issues: write

on:
issue_comment:
Copilot is powered by AI and may make mistakes. Always verify output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants