bug: pin SonarSource and GitHub actions to commit SHAs (sfind-df668999) #136
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.50) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 580 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.381
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #136"
general
weight: 0.35
devin-ai-integration[bot]
Summary
Fixes sfind-df668999e49c43b2bc775f50ac352fcb (low):
.github/workflows/sonarqube-scan.ymlreferencedSonarSource/sonarcloud-github-action@masterandSonarSource/sonarqube-quality-gate-action@master.@masteris mutable, so any new upstream commit would run on every PR withSONAR_TOKENandGITHUB_TOKENin its env.sonarcloud-github-actionis deprecated; its official replacementsonarqube-scan-actiondoes not useGITHUB_TOKEN, so that token is no longer passed to the scan step. The host still comes fromsonar.host.url=https://sonarcloud.ioinsonar-project.properties, and the scan still writes.scannerwork/report-task.txt, which the quality-gate action reads..github/dependabot.yml(package-ecosystem: github-actions, weekly) keeps the pinned SHAs current through reviewed PRs.Verification
A script checks that every
uses:is a 40-char SHA and that the SHA equals the commented tag upstream (git ls-remote), and that Dependabot coversgithub-actions:main(2f77dca): FAIL — 5 mutable refs, no Dependabot.v4.4.0,v5.6.0,v4.3.0,v8.4.1,v1.2.1; Dependabot present.grep -n "@master" .github/workflows/*.ymlreturns nothing.Token scope:
pull-requests: writestays on the job: theGet changed filesandTrigger Devin Remediationsteps call the PR files and issue-comments APIs withGITHUB_TOKEN. GitHub has no per-step permissions, so narrowing it means splitting the job; #128 does that (moves the Devin trigger into its owndevin-remediationjob). With every action pinned to a reviewed SHA, a third-party action can no longer change under the job, so an upstream compromise can no longer reach theGITHUB_PATH/curlswap path toDEVIN_API_KEYdescribed in the finding; new versions only arrive through reviewed Dependabot PRs.Not tested: the workflow was not actually run (no
SONAR_TOKENin this environment).Pre-existing, not from this PR:
actionlintreportscould not parse as YAMLat line 173 onmaintoo (the Devin prompt text in theTrigger Devin Remediationstep'srun: |starts at column 0). Until that is fixed GitHub may not load the workflow; the pins still apply once it does.Duplicates
Same change (cherry-picked commit, identical tree) as #96 (sfind-d527b633), #105 (sfind-0c7d806a), #111 (sfind-2ad20ba0), #121 (sfind-12faeafe) and #130 (sfind-9444907b), opened separately under the one-PR-per-ticket rule. Only one should be merged.
Devin-Org: engineering
Link to Devin session: https://devin-gtm.devinenterprise.com/sessions/94fd5cab02f74a4986443cc53c83494c
Open in Devin Desktop: https://devin-gtm.devinenterprise.com/desktop/session/94fd5cab02f74a4986443cc53c83494c?variant=devin
<!-- devin-review-badge-staging-begin -->
---
Devin Review
| Status | Commit |
|---|---|
| ⚪ Not started | — |
<a href="https://staging.itsdev.in/review/cog-gtm/etl-pipeline/pull/136" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-staging-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-staging-light.svg?v=4" alt="Devin Review (Staging)"></picture></a>
<!-- devin-review-badge-staging-end -->
<!-- devin-review-badge-begin -->
---
<a href="https://devin-gtm.devinenterprise.com/review/cog-gtm/etl-pipeline/pull/136" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a>
<!-- devin-review-badge-end -->