[Auto release] release 2.0.7#4276
Conversation
[Auto changelog] changlog of v2.0.6
…field Fix/water fall total stack by field
[Auto Sync] Sync the code from branch main to branch develop after release 2.0.6
fix: fix issue of waterfall stack total
fix: check if stackData is empty
feat: add regression-lines in vchart-extension
fix: support regression line for grouped scatter
add issue auto translate by Dromara
Add permissions for issues and pull requests in workflow
Add translate-issues workflow configuration
Set IS_MODIFY_TITLE to false for translation action.
Update translate-issues.yml to include permissions
Add translate-issues workflow configuration
Fix/logistic regression line
fix: upgrade-vutil to 1.0.12
feat: upgrade vrender to 1.0.21
docs(layout-item): add noOuterPadding property docs
Feat/register transform boxplot
fix: fix issue of layout
feat: support resize zoom chart plugin
Fix/crosshair not hide
fix: fix the vchart-extension packaged artifacts contained an extra v…
fix: fix the vchart-extension packaged artifacts contained an extra v…
| 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
The best way to fix the problem is to add a permissions block to the workflow file to restrict the default permissions of the GITHUB_TOKEN. Best (and safest) practice is to set minimal or appropriate permissions at the workflow or job level. In this context, the workflow likely needs permission to read the issue (for comments, events, etc.) and possibly write permission for issue comments (if the translation action posts results).
Steps to fix:
- Insert a
permissionsblock at the top level of the workflow (belowname:and/oron:), applying to all jobs. - As a minimal starting point, set
contents: read,issues: writeand (optionally, if the action comments)pull-requests: write. If only issues are used,issues: writesuffices. - Insert this block after the
nameand theonsections for clarity and visibility, beforejobs:.
No new methods, imports, or external resources are needed; just YAML modifications in .github/workflows/translate-issues.yml.
| @@ -6,6 +6,10 @@ | ||
| issues: | ||
| types: [opened] | ||
|
|
||
| permissions: | ||
| contents: read | ||
| issues: write | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest |
No description provided.