Repository navigation
fix(mirror): el publish no toca .github/workflows/ del espejo - #22
Merged
Merged
Conversation
El push al espejo se rechazaba (run de platform-v0.8.0) con: refusing to allow a GitHub App to create or update workflow .github/workflows/ci.yml without workflows permission. El rsync copiaba packages/<paquete>/.github/workflows/ci.yml. Se excluye /.github/workflows/ del rsync (protege tambien contra --delete); las plantillas Issue/PR siguen sincronizandose. Se actualizan CLAUDE.md y README.md. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015nTgTv7S3gQwaoNFw5fZeG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Causa raíz
El run https://github.com/ai4u-com-co/kernel/actions/runs/41104065349 (tag
platform-v0.8.0) falla en "Push del contenido al repo espejo":! [remote rejected] main -> main (refusing to allow a GitHub App to create or update workflow.github/workflows/ci.ymlwithoutworkflowspermission)El
rsyncdemirror.ymlcopia tambiénpackages/<paquete>/.github/workflows/ci.ymly lo modifica en el espejo; la GitHub Appai4u-bump-bot(contents:write, metadata:read, pull_requests:write) no puede tocar workflows.Cambio
mirror.yml:rsync -a --delete --exclude=.git --exclude='/.github/workflows/' .... La exclusión anclada también protege el destino contra--delete. Plantillas Issue/PR siguen sincronizándose.workflow_dispatch, concurrency y reintentos intactos.CLAUDE.mdyREADME.md: el publish no toca los workflows del espejo (se editan allí); los depackages/*/.github/workflows/son copias de referencia.Alcance
Todos los espejos. Ningún cambio de permisos ni de secretos de la App.
Evidencia (local, copia shallow de ai4u-com-co/platform, sin push, borrada después)
Mismo rsync desde
packages/platform/(0.8.0):.github/workflows/ci.yml:git diff --statvacío (sin cambios)..github/ISSUE_TEMPLATE/{bug,config,mejora,tarea}.ymly.github/PULL_REQUEST_TEMPLATE.md.npm ci && npm run type-check && npm test && npm run buildOK;git diff --quiet -- packages/*/distlimpio.Pasos humanos tras el merge
Re-publicar sin re-taggear:
gh workflow run mirror.yml -f tag=platform-v0.8.0🤖 Generated with Claude Code
https://claude.ai/code/session_015nTgTv7S3gQwaoNFw5fZeG