Skip to content

add .github/workflows/sync-to-gitee.yaml#3137

Merged
hengyunabc merged 1 commit intomasterfrom
sync_gitee
Jan 27, 2026
Merged

add .github/workflows/sync-to-gitee.yaml#3137
hengyunabc merged 1 commit intomasterfrom
sync_gitee

Conversation

@hengyunabc
Copy link
Collaborator

No description provided.

@hengyunabc hengyunabc requested a review from Copilot January 27, 2026 09:16
@hengyunabc hengyunabc merged commit c6efb82 into master Jan 27, 2026
19 checks passed
@hengyunabc hengyunabc deleted the sync_gitee branch January 27, 2026 09:22
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a GitHub Actions workflow to mirror this repository to Gitee on pushes to key branches.

Changes:

  • Introduces a new workflow that runs on pushes to master and gh-pages
  • Uses Yikun/hub-mirror-action to sync github/alibaba/arthas to gitee/arthas/arthas using repository secrets

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.
Comment on lines +16 to +19
src: github/alibaba
dst: gitee/arthas
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant