Skip to content

BUILD-12243: Move verify-sca to sonar-xs - #337

Merged
bwalsh434 merged 1 commit into
masterfrom
feat/bwalsh/BUILD-12243-move-verify-sca-to-sonar-xs
Aug 10, 2026
Merged

BUILD-12243: Move verify-sca to sonar-xs#337
bwalsh434 merged 1 commit into
masterfrom
feat/bwalsh/BUILD-12243-move-verify-sca-to-sonar-xs

Conversation

@bwalsh434

@bwalsh434 bwalsh434 commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

BUILD-12243: Rightsize the SCA verification job by moving it from the WarpBuild custom Ubuntu runner to the sonar-xs runner.

This preserves the workflow permissions, OIDC environment, and action invocation; only the runner label changes.

Test plan

  • Parse .github/workflows/check-sca.yml and assert verify-sca.runs-on is sonar-xs.
  • Verify sonar-xs is an allowed self-hosted runner label in .github/actionlint.yaml.
  • Run git diff --check.
  • After merge, monitor the GitHub Actions Runner Performance dashboard after 24 hours, focusing on sonar-xs job startup time and pending runners.

Summary by Gitar

  • CI workflow updates:
    • Added .github/workflows/test-check-sca.yml to test the SCA check workflow on pull requests.
    • Updated .github/workflows/check-sca.yml to support workflow_call triggers.

This will update automatically on new commits.

@hashicorp-vault-sonar-prod

hashicorp-vault-sonar-prod Bot commented Aug 10, 2026

Copy link
Copy Markdown

BUILD-12243

@bwalsh434
bwalsh434 marked this pull request as ready for review August 10, 2026 16:04
@bwalsh434
bwalsh434 requested a review from a team as a code owner August 10, 2026 16:04
Copilot AI lite review requested due to automatic review settings August 10, 2026 16:04

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.

Pull request overview

This PR updates the SCA verification workflow to run on the smaller sonar-xs runner instead of the WarpBuild custom Ubuntu runner, keeping the existing permissions/OIDC environment behavior intact while right-sizing compute.

Changes:

  • Switched verify-sca job runner label from warp-custom-ubuntu-24-04 to sonar-xs in the SCA check workflow.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Run the check-sca verify-sca job on the right-sized sonar-xs runner instead of the WarpBuild custom Ubuntu runner.
@bwalsh434
bwalsh434 force-pushed the feat/bwalsh/BUILD-12243-move-verify-sca-to-sonar-xs branch from 5db43f7 to 673478b Compare August 10, 2026 16:21
@sonarqubecloud

Copy link
Copy Markdown

@bwalsh434
bwalsh434 merged commit daf499c into master Aug 10, 2026
18 checks passed
@bwalsh434
bwalsh434 deleted the feat/bwalsh/BUILD-12243-move-verify-sca-to-sonar-xs branch August 10, 2026 16:30
@gitar-bot

gitar-bot Bot commented Aug 10, 2026

Copy link
Copy Markdown
Code Review 👍 Approved with suggestions 0 resolved / 1 findings

Moves the SCA verification job to the sonar-xs runner to rightsizing infrastructure. Consider addressing the duplicate workflow execution when pull requests touch these workflow files.

💡 Quality: SCA check runs twice on PRs touching these workflow files

Reply with Gitar … to ask about this finding.

check-sca.yml already triggers on pull_request, so its verify-sca job runs directly on every PR. The new test-check-sca.yml also invokes the same reusable workflow via workflow_call on PRs that modify these files, causing the SCA check (and its Vault/OIDC exchange) to execute twice for such PRs. This is functionally harmless but wasteful; consider whether the direct pull_request trigger in check-sca.yml is still needed now that a dedicated test workflow exercises the workflow_call path.

🤖 Prompt for agents
Code Review: Moves the SCA verification job to the sonar-xs runner to rightsizing infrastructure. Consider addressing the duplicate workflow execution when pull requests touch these workflow files.

1. 💡 Quality: SCA check runs twice on PRs touching these workflow files

   check-sca.yml already triggers on `pull_request`, so its `verify-sca` job runs directly on every PR. The new test-check-sca.yml also invokes the same reusable workflow via `workflow_call` on PRs that modify these files, causing the SCA check (and its Vault/OIDC exchange) to execute twice for such PRs. This is functionally harmless but wasteful; consider whether the direct `pull_request` trigger in check-sca.yml is still needed now that a dedicated test workflow exercises the `workflow_call` path.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

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.

3 participants