chore: rename AI Markdown translator references#23307
Conversation
📝 WalkthroughWalkthroughThe translation workflows now use ChangesTranslator repository migration
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/translation-cron.yml:
- Line 85: Update the actions/checkout references from v6 to v7 in
.github/workflows/translation-cron.yml (line 85),
.github/workflows/sync-doc-pr-zh-to-en.yml (line 44), and
.github/workflows/translation-zh.yaml (line 76); leave actions/setup-python@v6
unchanged. Optionally pin the checkout refs to SHAs for supply-chain hardening.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: 5a3eb10b-2b43-4339-9dcb-b722eead44cd
📒 Files selected for processing (3)
.github/workflows/sync-doc-pr-zh-to-en.yml.github/workflows/translation-cron.yml.github/workflows/translation-zh.yaml
| path: ai-markdown-translator | ||
| persist-credentials: false | ||
|
|
||
| - uses: actions/setup-python@v6 |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🌐 Web query:
What are the latest major versions of actions/setup-python and actions/checkout?
💡 Result:
As of July 19, 2026, the latest major versions for these GitHub Actions are: - actions/checkout: v7 [1][2][3] - actions/setup-python: v6 [4][5][6] The actions/checkout action released version v7.0.0 on June 18, 2026 [2][7]. The actions/setup-python action is currently at major version v6 [4][6].
Citations:
- 1: https://github.com/actions/checkout/releases
- 2: https://github.com/actions/checkout/releases/tag/v7.0.0
- 3: https://github.com/actions/checkout/?tab=readme-ov-file
- 4: https://github.com/marketplace/actions/setup-python
- 5: https://github.com/actions/setup-python
- 6: https://github.com/actions/setup-python/tree/refs/heads/main
- 7: https://github.blog/changelog/2026-06-18-safer-pull_request_target-defaults-for-github-actions-checkout/
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf 'Workflow action references:\n'
rg -n 'uses: actions/(checkout|setup-python)@' .github/workflows/translation-cron.yml .github/workflows/sync-doc-pr-zh-to-en.yml .github/workflows/translation-zh.yaml
printf '\nFull surrounding context:\n'
for f in .github/workflows/translation-cron.yml .github/workflows/sync-doc-pr-zh-to-en.yml .github/workflows/translation-zh.yaml; do
echo "---- $f ----"
sed -n '1,140p' "$f" | nl -ba | sed -n '1,140p' | rg -n 'actions/(checkout|setup-python)@|uses:|name:'
doneRepository: pingcap/docs
Length of output: 1298
🌐 Web query:
GitHub Actions actions/checkout current major version release and actions/setup-python current major version release
💡 Result:
As of July 19, 2026, the current major version releases for the specified GitHub Actions are: 1. actions/checkout: The current major version is v7 [1][2][3]. 2. actions/setup-python: The current major version is v6 [4][5]. Note: For actions/checkout, version v7.0.0 was released on June 18, 2026 [2]. For actions/setup-python, the v6 series (with the latest release being v6.3.0 as of the most recent data) remains the current major version [5].
Citations:
- 1: https://github.com/actions/checkout/releases
- 2: https://github.com/actions/checkout/releases/tag/v7.0.0
- 3: https://github.com/actions/checkout
- 4: https://github.com/actions/setup-python
- 5: https://github.com/actions/setup-python/releases
Bump actions/checkout to v7; actions/setup-python@v6 is already current.
The checkout refs in .github/workflows/translation-cron.yml, .github/workflows/sync-doc-pr-zh-to-en.yml, and .github/workflows/translation-zh.yaml are still on v6. Pin these action refs to SHAs if you want supply-chain hardening.
🧰 Tools
🪛 zizmor (1.26.1)
[error] 85-85: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
📍 Affects 3 files
.github/workflows/translation-cron.yml#L85-L85(this comment).github/workflows/sync-doc-pr-zh-to-en.yml#L44-L44.github/workflows/translation-zh.yaml#L76-L76
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In @.github/workflows/translation-cron.yml at line 85, Update the
actions/checkout references from v6 to v7 in
.github/workflows/translation-cron.yml (line 85),
.github/workflows/sync-doc-pr-zh-to-en.yml (line 44), and
.github/workflows/translation-zh.yaml (line 76); leave actions/setup-python@v6
unchanged. Optionally pin the checkout refs to SHAs for supply-chain hardening.
Source: Linters/SAST tools
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: qiancai The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What is changed, added or deleted? (Required)
Update the GitHub Actions workflows to use the renamed
qiancai/ai-markdown-translatorrepository and matching checkout paths.Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?
AI agent involvement
Do your changes match any of the following descriptions?
Summary by CodeRabbit