From b28174cb2e859ec52623a8cafcf41574262ffe74 Mon Sep 17 00:00:00 2001 From: Musiker15 Date: Mon, 20 Jul 2026 21:40:02 +0200 Subject: [PATCH] ci(mirror): skip the Codeberg mirror on Dependabot branches 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. --- .github/workflows/mirror.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index c0e84b8..e30d9cb 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -32,7 +32,10 @@ name: Mirror to Codeberg on: push: - branches: ["**"] + # Dependabot pushes run with the Dependabot secrets store, not the Actions + # one, so CODEBERG_* are empty and the mirror always fails on those branches. + # They are ephemeral throwaway branches not worth mirroring anyway — skip them. + branches-ignore: ["dependabot/**"] tags: ["**"] delete: workflow_dispatch: