-
Notifications
You must be signed in to change notification settings - Fork 232
create a "wrapper" action to upload to crowdin and then download #2004
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| name: Crowdin Download Action | ||
|
|
||
| on: | ||
| workflow_call: | ||
| workflow_dispatch: | ||
| inputs: | ||
| target_branch: | ||
|
|
||
| Original file line number | Diff line number | Diff line change | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,12 @@ | |||||||||||||||||||||||
| name: Crowdin Manual Upload and Download | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| on: | |||||||||||||||||||||||
| workflow_dispatch: | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| jobs: | |||||||||||||||||||||||
| trigger-upload: | |||||||||||||||||||||||
| uses: ./.github/workflows/crowdin-upload-workflow.yml | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| trigger-download: | |||||||||||||||||||||||
| needs: [ trigger-upload ] | |||||||||||||||||||||||
| uses: ./.github/workflows/crowdin-download-workflow.yml | |||||||||||||||||||||||
|
Comment on lines
+11
to
+12
Check warningCode 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 AutofixAI about 2 months ago The fix is to add a
Suggested changeset
1
.github/workflows/crowdin-manual-workflow.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Refresh and try again.
|
|||||||||||||||||||||||
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI about 2 months ago
The fix involves specifying a
permissionsblock at either the root of the workflow or for each job (here, setting it at the root is recommended as both jobs are simple triggers of reusable workflows and likely need very few permissions). Ordinarily, workflows that trigger other workflows do not require write permissions; they only need minimalcontents: read, unless the downstream workflow needs more. Adding the following block right after the workflow name sets the least-privilege permissions for all jobs in the workflow:This change should be added after the
name:field and before theon:block to match typical GitHub Actions conventions.