Skip to content

ci(mirror): skip the Codeberg mirror on Dependabot branches#213

Merged
Musiker15 merged 1 commit into
mainfrom
ci/mirror-skip-dependabot
Jul 20, 2026
Merged

ci(mirror): skip the Codeberg mirror on Dependabot branches#213
Musiker15 merged 1 commit into
mainfrom
ci/mirror-skip-dependabot

Conversation

@Musiker15

Copy link
Copy Markdown
Member

The "Push to Codeberg" mirror job failed on every Dependabot PR, adding a red check to each dependency bump.

Cause

Dependabot-triggered workflow runs use the Dependabot secrets store, not the Actions one (the run log shows Secret source: Dependabot). The CODEBERG_TOKEN / CODEBERG_USER / CODEBERG_REPO secrets live in the Actions store, so they are empty in Dependabot runs and the job's own guard exits 1.

Fix

Ignore dependabot/** branches on the mirror's push trigger. Those branches are ephemeral (deleted on merge) and not worth mirroring anyway; main, feature branches and tags still mirror as before. This removes the spurious red check from dependency PRs.

Workflow-only change.

Dependabot-triggered workflow runs use the Dependabot secrets store, not the
Actions one, so CODEBERG_TOKEN/USER/REPO are empty and the mirror job fails on
every Dependabot branch push, adding a red check to every dependency PR. Those
branches are ephemeral and not worth mirroring, so ignore dependabot/** on push.
@Musiker15
Musiker15 merged commit 1874d76 into main Jul 20, 2026
5 checks passed
@Musiker15
Musiker15 deleted the ci/mirror-skip-dependabot branch July 20, 2026 19:42
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