Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/monthly_snapshot_audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
MONTHLY_SNAPSHOT_AUDIT_ENABLED: ${{ vars.MONTHLY_SNAPSHOT_AUDIT_ENABLED || 'true' }}
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
CODEX_AUDIT_ENABLED: ${{ vars.CODEX_AUDIT_ENABLED || 'true' }}
CODEX_AUDIT_BRIDGE_REPOSITORY: ${{ vars.CODEX_AUDIT_BRIDGE_REPOSITORY || 'QuantStrategyLab/CodexAuditBridge' }}
CODEX_AUDIT_BRIDGE_REPOSITORY: ${{ vars.CODEX_AUDIT_BRIDGE_REPOSITORY || 'QuantStrategyLab/AIAuditBridge' }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Scope the app token to the new audit repository

When CROSS_REPO_GITHUB_APP_* credentials are configured, this default now dispatches to QuantStrategyLab/AIAuditBridge, but the GitHub App token step is still scoped to the CodexAuditBridge repository and the dispatch script prefers that app token over CODEX_AUDIT_DISPATCH_TOKEN. In that environment the workflow creates a token that cannot access the new target repo, so the monthly audit dispatch to /repos/QuantStrategyLab/AIAuditBridge/actions/workflows/codex_audit.yml/dispatches fails instead of falling back to the secret token.

Useful? React with 👍 / 👎.

CODEX_AUDIT_BRIDGE_REF: ${{ vars.CODEX_AUDIT_BRIDGE_REF || 'main' }}
CODEX_AUDIT_MODE: ${{ vars.CODEX_AUDIT_MODE || 'review_and_fix' }}
CODEX_AUDIT_PROVIDER: ${{ vars.CODEX_AUDIT_PROVIDER || 'auto' }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ This workflow does not create production data, approve live trading, deploy Clou

## Monthly AI audit

The scheduled [`monthly_snapshot_audit.yml`](.github/workflows/monthly_snapshot_audit.yml) workflow creates a monthly GitHub issue and dispatches review work to `QuantStrategyLab/CodexAuditBridge`.
The scheduled [`monthly_snapshot_audit.yml`](.github/workflows/monthly_snapshot_audit.yml) workflow creates a monthly GitHub issue and dispatches review work to `QuantStrategyLab/AIAuditBridge`.

It only writes an audit package under `data/output/monthly_snapshot_audit`; it does not publish artifacts, deploy Cloud Run, change broker configuration, or place orders.

Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ gh workflow run publish-hk-snapshot-artifacts.yml \

## 月度 AI 审计

定时 workflow [`monthly_snapshot_audit.yml`](.github/workflows/monthly_snapshot_audit.yml) 会创建月度 GitHub issue,并把 review 工作派发到 `QuantStrategyLab/CodexAuditBridge`。
定时 workflow [`monthly_snapshot_audit.yml`](.github/workflows/monthly_snapshot_audit.yml) 会创建月度 GitHub issue,并把 review 工作派发到 `QuantStrategyLab/AIAuditBridge`。

它只会在 `data/output/monthly_snapshot_audit` 下生成审计包,不会发布 artifact、部署 Cloud Run、修改券商配置或下单。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

DEFAULT_SOURCE_REPO = "QuantStrategyLab/HkEquitySnapshotPipelines"
DEFAULT_SOURCE_REF = "main"
DEFAULT_CODEX_AUDIT_REPOSITORY = "QuantStrategyLab/CodexAuditBridge"
DEFAULT_CODEX_AUDIT_REPOSITORY = "QuantStrategyLab/AIAuditBridge"
MONTHLY_SNAPSHOT_AUDIT_TASK = "monthly_snapshot_audit"
MONTHLY_SNAPSHOT_AUDIT_BUNDLE_VERSION = "hk_snapshot_monthly_audit_bundle.v1"
DEFAULT_OUTPUT_DIR = Path("data/output/monthly_snapshot_audit")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_monthly_snapshot_audit_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_monthly_snapshot_audit_workflow_dispatches_codex_bridge():
assert "actions/create-github-app-token@v3" in workflow
assert "write_monthly_snapshot_audit_issue.py" in workflow
assert "monthly_snapshot_audit_issue.json" in workflow
assert "QuantStrategyLab/CodexAuditBridge" in workflow
assert "QuantStrategyLab/AIAuditBridge" in workflow
assert "CODEX_AUDIT_BRIDGE_REF" in workflow
assert '"ref": os.environ["CODEX_AUDIT_BRIDGE_REF"]' in workflow
assert "codex_audit.yml" in workflow
Expand Down
Loading