Skip to content

Commit 54ec94e

Browse files
committed
Thread BEDROCK_ISSUE_MODEL_ID through the reusable workflow
v1.5 added the issue-answer model knob to the engine but did not wire it in the reusable workflow, so a caller couldn't set it by secret (only via .shadow.yml). Declare BEDROCK_ISSUE_MODEL_ID as an optional secret and pass it into the analyze job's env, mirroring BEDROCK_CRITIC_MODEL_ID. Not added to the act job (act only posts; the footer model id comes from the analyze artifact). Caller example documents the new secret + its structured-output constraint.
1 parent 2b5f0c4 commit 54ec94e

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/shadow-review.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ on:
7474
required: false
7575
BEDROCK_CRITIC_MODEL_ID:
7676
required: false
77+
BEDROCK_ISSUE_MODEL_ID:
78+
required: false
79+
description: "Model for issue/followup answers (defaults to the reporter model). Must support structured output over Bedrock (Haiku 4.5 / Sonnet 4.6)."
7780
GUARDRAIL_ID:
7881
required: false
7982
GUARDRAIL_VERSION:
@@ -155,6 +158,7 @@ jobs:
155158
BEDROCK_MODEL_ID: ${{ secrets.BEDROCK_MODEL_ID || 'us.anthropic.claude-opus-4-7' }}
156159
BEDROCK_REPORTER_MODEL_ID: ${{ secrets.BEDROCK_REPORTER_MODEL_ID || 'us.anthropic.claude-haiku-4-5-20251001-v1:0' }}
157160
BEDROCK_CRITIC_MODEL_ID: ${{ secrets.BEDROCK_CRITIC_MODEL_ID }}
161+
BEDROCK_ISSUE_MODEL_ID: ${{ secrets.BEDROCK_ISSUE_MODEL_ID }}
158162
GUARDRAIL_ID: ${{ secrets.GUARDRAIL_ID }}
159163
GUARDRAIL_VERSION: ${{ secrets.GUARDRAIL_VERSION }}
160164
BOT_AGENT_PIPELINE: "1"

examples/caller-workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ jobs:
7777
# BEDROCK_MODEL_ID: ${{ secrets.BEDROCK_MODEL_ID }}
7878
# BEDROCK_REPORTER_MODEL_ID: ${{ secrets.BEDROCK_REPORTER_MODEL_ID }}
7979
# BEDROCK_CRITIC_MODEL_ID: ${{ secrets.BEDROCK_CRITIC_MODEL_ID }}
80+
# Issue/followup answers (defaults to reporter). Must support structured
81+
# output — Haiku 4.5 or Sonnet 4.6 (not Opus 4.8 / Sonnet 5).
82+
# BEDROCK_ISSUE_MODEL_ID: ${{ secrets.BEDROCK_ISSUE_MODEL_ID }}
8083
# KB_S3_BUCKET: ${{ secrets.KB_S3_BUCKET }}
8184
# KB_S3_KEY: ${{ secrets.KB_S3_KEY }}
8285
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)