Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/sync-to-gitee.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync to Gitee

on:
push:
branches:
- master
- gh-pages

jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Sync to Gitee
uses: Yikun/hub-mirror-action@v1.5
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow uses a third-party action pinned only to a mutable tag (Yikun/hub-mirror-action@v1.5). To reduce supply-chain risk, pin the action to an immutable commit SHA (optionally with a comment noting the intended version) so a retagged release can’t change what runs in CI.

Suggested change
uses: Yikun/hub-mirror-action@v1.5
uses: Yikun/hub-mirror-action@<COMMIT-SHA-FOR-v1.5> # v1.5

Copilot uses AI. Check for mistakes.
with:
src: github/alibaba
dst: gitee/arthas
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
Comment on lines +16 to +19
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This job requires GITEE_PRIVATE_KEY/GITEE_TOKEN secrets and hard-codes src/dst orgs. In forks (or in environments where these secrets aren’t configured), the workflow will run on push and fail. Consider adding a job-level guard (e.g., if: github.repository == 'alibaba/arthas' and/or checking that required secrets are present) to avoid noisy failures and unintended runs.

Copilot uses AI. Check for mistakes.
static_list: "arthas"
Loading