← Back to Pull requests

ci: add shared set-commit-status action #2

Merged
bogdankrasko merged 2 files (44 lines) on Aug 05, 2026 10:20 UTC
View on GitHub
bogdankrasko bogdankrasko commented on Aug 05, 2026 07:38 UTC
Author

Add a reusable composite action that sets a commit status for a supplied SHA using the GitHub CLI and workflow token.

Document the action's inputs, required statuses: write permission, and SHA-pinned usage. Hosting the action in cilium/actions allows consuming repositories to avoid branch-specific self-references and lets Renovate manage action updates.

Diff: 44 lines (+41 / -3) across 2 files Reviewer: giorio94 Review duration: 161m
All Vouch review confidence checks passed
Residual risk 0.03 = Change Risk (0.27) × (1 − Review Confidence (0.91)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.27 · 44 lines diff across 2 files
0.27
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 2 substantive comment(s)
0.89
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
90%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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.228
Real PR Conversation Timeline
5 items
giorio94 giorio94 commented on code on Aug 05, 2026 09:28 UTC
Code Review
set-commit-status/action.yaml:1
@@ -0,0 +1,24 @@
+name: Set Commit Status
+description: Sets a commit status on a given SHA via the GitHub API.
+
+inputs:
+  sha:
+    description: The commit SHA to set the status on.
+    required: true
+  status:
+    description: The commit status state (pending, success, failure, error).
+    required: false
+    default: pending
+
+runs:
+  using: composite
+  steps:
+    - name: Set commit status
+      shell: bash

Is the explicit shell specification necessary here?

giorio94 giorio94 commented on Aug 05, 2026 09:32 UTC
Reviewer

Thanks! One question inline. The commit message should also acknowledge that this action was taken from cilium/cilium, and initially introduced by André Martins (https://github.com/cilium/cilium/commit/a5c8739695f00ceac94efdc010afaa2dc45033bb).

bogdankrasko bogdankrasko commented on code on Aug 05, 2026 09:44 UTC
Code Review
set-commit-status/action.yaml:1
@@ -0,0 +1,24 @@
+name: Set Commit Status
+description: Sets a commit status on a given SHA via the GitHub API.
+
+inputs:
+  sha:
+    description: The commit SHA to set the status on.
+    required: true
+  status:
+    description: The commit status state (pending, success, failure, error).
+    required: false
+    default: pending
+
+runs:
+  using: composite
+  steps:
+    - name: Set commit status
+      shell: bash

Yes. Composite-action steps using run must explicitly specify a shell; otherwise GitHub rejects the action metadata. I’ve kept bash, matching the original Cilium action.
@giorio94 Let me know if you have any other questions/suggestions.

giorio94 giorio94 approved these changes on Aug 05, 2026 10:19 UTC
Approved Reviewer

Thanks!

Reviewers
Assignees
bogdankrasko bogdankrasko
Labels
risk: low confidence: 90.6% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 27.2% (LOW) · Higher = larger blast radius
27.2%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 90.6% · Lower = rushed or shallow review
90.6%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 2.6% · Safe to merge
2.6%
Repository