Skip to content

Workflow Templates

Workflow templates are thin caller workflows (~20 lines each) installed in target repositories. Each caller declares its trigger event and permissions, then delegates to the corresponding shared reusable workflow in buck-bronson. The bucky CLI installs the code review workflow.

WorkflowTriggerWhat it does
bucky-code-review.ymlpull_requestAI code review when PRs are opened or updated

Each caller workflow:

  1. Declares trigger events and required permissions
  2. Calls the corresponding reusable workflow in buck-bronson with @v1
  3. Uses secrets: inherit to forward all repo/org secrets
name: Bucky Code Review
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
pull-requests: write
id-token: write
jobs:
review:
uses: fetch-rewards/buck-bronson/.github/workflows/bucky-code-review.yml@v1
secrets: inherit

When the CLI generates the caller workflow, it rewrites @main refs to @v{major} (e.g., @v1) on lines referencing the buck-bronson repo.

The code review caller workflow requests these permissions:

PermissionLevelPurpose
contentswriteRead/write repo files, create branches
pull-requestswriteCreate and comment on PRs
id-tokenwriteOIDC authentication for AWS Bedrock
actionsreadRead workflow run information