Skip to content

feat(cloud): add trigger provenance, outcome reporting, outbox, and env-var key (#241) - #290

Open
SriRamkunamsetty wants to merge 1 commit into
secfoo-com:mainfrom
SriRamkunamsetty:feat/automation-reporting-241
Open

SriRamkunamsetty wants to merge 1 commit into
secfoo-com:mainfrom
SriRamkunamsetty:feat/automation-reporting-241

Conversation

@SriRamkunamsetty

Copy link
Copy Markdown
Contributor

Closes #241
Follows up #252

Rebased onto main (afe600d) and addressed every review point:

  • Made _try_cloud_sync in src/secfoo/runner.py tolerate None-returning stubs and non-CloudError config failures cleanly.
  • Updated flush_outbox and _opportunistic_outbox_flush (cloud.py, cli.py) to skip with zero network calls when nothing is queued, guard fake repositories lacking list_unsynced_runs, and never affect command exit codes or output.
  • Unified env-var precedence in src/secfoo/cloud.py (SECFOO_API_KEY > SECFOO_API_KEY_FILE > SECFOO_CLOUD_API_KEY alias, with SECFOO_SERVER > SECFOO_CLOUD_PORTAL_URL alias) and fixed the CodeQL Empty except in tests/test_automation_reporting.py.
  • Verified locally: tests/test_automation_reporting.py, test_runner_best_effort.py, test_cloud.py, test_mcp_server.py (39 passed, 1 skipped) and ruff check pass.

Copilot AI balanced review requested due to automatic review settings December 6, 2026 13:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automation runs always report back: trigger provenance, every outcome (not just success), offline queue, env-var key

2 participants