Skip to content

[comp] Production Deploy#3109

Merged
tofikwest merged 5 commits into
releasefrom
main
Jun 11, 2026
Merged

[comp] Production Deploy#3109
tofikwest merged 5 commits into
releasefrom
main

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.


Summary by cubic

Prevent GCP and Azure scans from saving empty “success” runs when every scope/unit fails, keeping previous results visible and surfacing actionable errors. Also map GCP SCC 404 responses to the SCC_NOT_ACTIVATED error.

  • Bug Fixes
    • GCP: track per-scope outcomes and throw when all scopes fail; return findings when any scope succeeds (including zero findings).
    • Azure: track failed units across Defender and service adapters; throw on empty results when any unit failed; refactor Defender scan to report success state.
    • Map GCP SCC 404 NOT_FOUND to SCC_NOT_ACTIVATED with activation guidance.

Written for commit 83c24cd. Summary will update on new commits.

Review in cubic

github-actions Bot and others added 5 commits June 11, 2026 18:57
…d results

A cloud scan that errored on every scope/unit silently returned [], which was
stored as a fresh status:'success' run with 0 findings. The UI shows only the
latest run per connection, so the empty run hid the previous good results
("0 total — Looking good"). This is what a customer hit on GCP after a scan.

GCP: scanSecurityFindings swallowed every per-scope SCC error and returned [].
Add an all-scopes-failed guard mirroring AWS (aws-security.service.ts:396-405):
track successful/failed scopes and re-throw the underlying SCC error when every
scope failed. A thrown scan skips storeFindings, so the prior good run stays
visible and the actionable error (SCC_NOT_ACTIVATED / PERMISSION_DENIED) finally
reaches the UI. A scope that succeeds with 0 findings does not throw.

Azure: same class of bug, no guard at all. A non-403 total failure (transient
500s / throttling) returned []. Refactor scanDefender to report whether any
query succeeded, and throw when the result is empty AND a unit failed — a clean
subscription still emits passing findings, so empty+failure is the real tell.
403 permission-findings and genuinely-empty subscriptions are unaffected.

AWS already handles this (regional all-failed guard, always active because
baseline regional services are always scanned) — verified, left unchanged.

Tests: +4 GCP, +4 Azure (new azure-security.service.spec.ts).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ACTIVATED error

Verified in prod logs: the customer's project-scoped SCC query fails with
404 "Requested entity was not found" — their GCP account has no organization
and SCC was never activated for the selected project. Without this mapping the
new throw-guard would surface a raw "GCP API error (404)"; with it the user
gets the existing SCC_NOT_ACTIVATED flow (400 + persistent inline error with
the activation link).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ults-disappear

fix(cloud-security): don't let a fully-failed GCP/Azure scan wipe good results
@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
comp-framework-editor (staging) Building Building Preview Jun 11, 2026 9:05pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
app (staging) Skipped Skipped Jun 11, 2026 9:05pm
portal (staging) Skipped Skipped Jun 11, 2026 9:05pm

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 4 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@tofikwest tofikwest merged commit 0489b28 into release Jun 11, 2026
12 checks passed
@claudfuen

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.78.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants