ci: add Claude Code review workflow#18
Open
lucianopf wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Este PR adiciona um workflow do GitHub Actions para executar a revisão automatizada do Claude Code no repositório, reaproveitando um workflow compartilhado da org corabank para padronizar o processo de revisão.
Changes:
- Adiciona o workflow
.github/workflows/claude.ymlcom gatilhos para PRs, issues e comentários/reviews. - Configura o job para reutilizar
corabank/.github/.github/workflows/claude-review.ymlcomstack: node. - Habilita herança de secrets no job via
secrets: inherit.
Comments suppressed due to low confidence (2)
.github/workflows/claude.yml:18
- O workflow reutilizável está referenciado por branch (
@main). Para reduzir risco de supply chain e mudanças inesperadas no CI, prefira pinning por SHA (ou uma tag/version fixa) e atualize via PR quando necessário.
review:
uses: corabank/.github/.github/workflows/claude-review.yml@main
with:
.github/workflows/claude.yml:20
- O workflow não define
permissions:para oGITHUB_TOKEN. Para seguir o princípio do menor privilégio (especialmente comsecrets: inherit), defina permissões explícitas no nível do workflow ou do job (ex.:contents: reade somente o que o workflow reutilizável realmente precisa).
jobs:
review:
uses: corabank/.github/.github/workflows/claude-review.yml@main
with:
stack: node
secrets: inherit
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+6
to
+7
| pull_request: | ||
| types: [opened] |
Comment on lines
+4
to
+11
| issue_comment: | ||
| types: [created] | ||
| pull_request: | ||
| types: [opened] | ||
| pull_request_review_comment: | ||
| types: [created] | ||
| pull_request_review: | ||
| types: [submitted] |
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.
O que
Adiciona o workflow de revisão automatizada do Claude Code a este repositório, utilizando o workflow compartilhado da org corabank.
Por que
Garantir que todo código novo passe por revisão automatizada do Claude, mantendo qualidade e consistência com os demais repositórios da org.
Como
.github/workflows/claude.ymlque referencia o workflow compartilhadocorabank/.github/.github/workflows/claude-review.yml@mainnode(GitHub primary language:TypeScript)Referência