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
3 changes: 3 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0

- name: Mirror to Codeberg
uses: cssnr/mirror-repository-action@2af5bf347684245f52b5f56502956a57f9b8813e # v1

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 The inline comment says # v1 but the SHA 2af5bf347684245f52b5f56502956a57f9b8813e corresponds to v1.2.0 (confirmed from the action author's own mirror workflow). Keeping the comment accurate avoids confusion when auditing pinned versions later.

Suggested change
uses: cssnr/mirror-repository-action@2af5bf347684245f52b5f56502956a57f9b8813e # v1
uses: cssnr/mirror-repository-action@2af5bf347684245f52b5f56502956a57f9b8813e # v1.2.0

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Fix in Claude Code Fix in Codex Fix in Cursor

with:
host: https://codeberg.org
username: thedavidweng
password: ${{ secrets.CODEBERG_TOKEN }}
force_push: true

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 force_push is not a declared input of this action

The GitHub Marketplace listing for cssnr/mirror-repository-action v1.2.0 declares inputs: url, host, owner, repo, create, username, password, summary, and private. force_push is absent from all of them. GitHub Actions will emit a warning about the unexpected input and the parameter will be silently ignored — the push will happen without --force, meaning the original failure (Codeberg history diverged from GitHub) will persist. Verify via the action's source action.yml that force_push is a recognized input at the pinned SHA, or replace this step with a raw git push --force script step.

Fix in Claude Code Fix in Codex Fix in Cursor

Loading