Skip to content

mirror.yml 中直接传递用户名#5005

Merged
Glavo merged 1 commit intoHMCL-dev:mainfrom
Glavo:sync-username
Dec 19, 2025
Merged

mirror.yml 中直接传递用户名#5005
Glavo merged 1 commit intoHMCL-dev:mainfrom
Glavo:sync-username

Conversation

@Glavo
Copy link
Copy Markdown
Member

@Glavo Glavo commented Dec 19, 2025

No description provided.

Copy link
Copy Markdown
Contributor

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

This PR simplifies the mirror workflow configuration by moving usernames from GitHub secrets to hardcoded values in the YAML file. Since usernames for public Git services are not sensitive information (unlike tokens), this change reduces unnecessary complexity while maintaining security for actual credentials.

  • Hardcodes usernames ('hmcl-sync' for Gitee, 'cnb' for CNB) directly in the workflow matrix
  • Updates the git push command to use matrix.target.user instead of secrets[matrix.target.user]
  • Maintains proper secret handling for authentication tokens

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

@Glavo Glavo merged commit f77f005 into HMCL-dev:main Dec 19, 2025
7 checks passed
@Glavo Glavo deleted the sync-username branch December 19, 2025 08:10
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.

2 participants