← Back to Pull requests

ci: Add OpenSSF Scorecard #1533

Merged
dianab-cl merged 2 files (52 lines) on Oct 14, 2026 09:10 UTC
View on GitHub
dianab-cl dianab-cl commented on Oct 05, 2026 15:36 UTC
Author

No description provided by author.

Diff: 52 lines (+52 / -0) across 2 files Reviewer: gjermundgaraba Review duration: 12574m
All Vouch review confidence checks passed
Residual risk 0.04 = Change Risk (0.28) × (1 − Review Confidence (0.86)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.28 · 52 lines diff across 2 files
0.28
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.81 · 5 substantive comment(s)
0.81
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
85%
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.238
Real PR Conversation Timeline
7 items
github-actions[bot] github-actions[bot] commented on Oct 05, 2026 15:38 UTC
Bot

<!-- dependency-review:govulncheck -->

Vulnerable dependencies

11 advisories across 1 library need attention, 2 accepted.

:rotating_light: Needs attention

Go standard library

In use: go1.26.6, go0.59.0 — reached from cli, e2e, gen/go/solidity-abi

| Advisory | CVE | Fixed in | Summary |
|---|---|---|---|
| GO-2026-6599 | CVE-2026-94448 | go1.26.9 | Reset context tracking on consecutive template expressions in html/template |
| GO-2026-6600 | CVE-2026-97030 | go1.26.9 | Recognize yield as regexp preceder keyword in html/template |
| GO-2026-6603 | CVE-2026-78659 | go1.26.9 | HTTP/2 server memory exhaustion due to Trailer headers in net/http |
| GO-2026-6605 | CVE-2026-56866 | go1.26.9 | HTTP/1 client connection desynchronization after CONNECT rejection in net/http |
| GO-2026-6607 | CVE-2026-97031 | go1.26.9 | Reject malformed ECH outer extension references in crypto/tls |
| GO-2026-6608 | CVE-2026-94440 | go1.26.9 | Memory limit bypass when parsing MIME headers in net/textproto, mime/multipart |
| GO-2026-6610 | CVE-2026-78660 | go1.26.9 | HTTP/2 transport accepts malformed framing-related headers in net/http |
| GO-2026-6611 | CVE-2026-78669 | go1.26.9 | Excessive CPU consumption from repeated initial window changes in net/http |
| GO-2026-6612 | CVE-2026-78663 | go1.26.9 | Double flow control refund on HTTP/2 server streams in net/http |
| GO-2026-6613 | CVE-2026-94439 | go1.26.9 | HTTP/1 server connection desynchronization after 2xx CONNECT response in net/http |
| GO-2026-6617 | CVE-2026-97032 | go1.26.9 | HTTP/2 server crash due to HPACK encoder race in net/http |

Run make vulncheck for the call paths. Either upgrade the library, or add the
advisory to .govulncheck-ignore with a reason if no fix exists yet.

Accepted

Listed in .govulncheck-ignore with a reason.

github.com/pion/dtls/v2

In use: v2.2.12 — reached from cli, e2e

| Advisory | CVE | Fixed in | Summary |
|---|---|---|---|
| GO-2026-4479 | CVE-2026-26014 | no fix yet | Usage of random nonce generation with AES GCM ciphers risks leaking the authentication key in github.com/pion/dtls |

golang.org/x/crypto

In use: v0.57.0 — reached from cli, e2e

| Advisory | CVE | Fixed in | Summary |
|---|---|---|---|
| GO-2026-5932 | — | no fix yet | The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues |

<sub>From make vulncheck-json on this run: logs.</sub>

greptile-apps[bot] greptile-apps[bot] commented on Oct 05, 2026 15:40 UTC
Bot

<!-- greptile_summary -->

<h2><a href="https://app.greptile.com/api/retrigger?id=74916666"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a>Confidence Score: 4/5</h2>

[Low risk] Adds OpenSSF Scorecard security analysis workflow\.

The PR appears safe to merge, with non-blocking improvements needed for failure-time report retention and the workflow comment.

<h2>Findings</h2>

1. <img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top">&nbsp;Generated reports can be lost <a href="https://github.com/cosmos/ibc/pull/1533#discussion_r4185851691">▶</a>
2. <img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top">&nbsp;Comment links to another repository <a href="https://github.com/cosmos/ibc/pull/1533#discussion_r4185851697">▶</a>

<h3>Summary</h3>

The PR adds a scheduled and event-triggered OpenSSF Scorecard workflow that publishes results, saves SARIF, and uploads findings to code scanning. It also adds a Scorecard badge to the README.

  • The badge targets this repository.

  • Failure-time report retention and one workflow comment need correction.
  • <!-- greptile_confidence_score:4 -->

    <sub>Reviews (1) · Last reviewed commit: "ci: Add OpenSSF Scorecard"</sub>

    greptile-apps[bot] greptile-apps[bot] commented on code on Oct 05, 2026 15:40 UTC
    Code Review
    .github/workflows/scorecard.yml:1
    @@ -0,0 +1,50 @@
    +# SPDX-License-Identifier: Apache-2.0
    +
    +name: OpenSSF Scorecard
    +
    +on:
    +  # For Branch-Protection check. Only the default branch is supported. See
    +  # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
    +  branch_protection_rule:
    +  push:
    +    branches: [main]
    +  schedule:
    +    - cron: "29 4 * * 1"
    +  workflow_dispatch:
    +
    +permissions: {}
    +
    +jobs:
    +  analysis:
    +    name: Scorecard analysis
    +    runs-on: ubuntu-latest
    +    timeout-minutes: 15
    +    permissions:
    +      # Needed to upload the results to the code-scanning dashboard.
    +      security-events: write
    +      # Needed to publish results and get a badge (see publish_results below).
    +      id-token: write
    +      contents: read
    +      actions: read
    +    steps:
    +      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
    +        with:
    +          persist-credentials: false
    +
    +      - uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4
    +        with:
    +          results_file: results.sarif
    +          results_format: sarif
    +          # Publish results to the OpenSSF REST API for the README badge and
    +          # https://scorecard.dev/viewer/?uri=github.com/cosmos/ibc-go
    +          publish_results: true
    +
    +      - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7

    <a href="#"><img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"></a> Generated reports can be lost

    If Scorecard writes results.sarif but then fails while publishing, GitHub Actions skips this artifact upload and the following code-scanning upload. The report exists on the runner but is unavailable from the run, making the failure harder to diagnose. Have the uploads run when the file exists, even if publication fails.

    greptile-apps[bot] greptile-apps[bot] commented on code on Oct 05, 2026 15:40 UTC
    Code Review
    .github/workflows/scorecard.yml:1
    @@ -0,0 +1,50 @@
    +# SPDX-License-Identifier: Apache-2.0
    +
    +name: OpenSSF Scorecard
    +
    +on:
    +  # For Branch-Protection check. Only the default branch is supported. See
    +  # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
    +  branch_protection_rule:
    +  push:
    +    branches: [main]
    +  schedule:
    +    - cron: "29 4 * * 1"
    +  workflow_dispatch:
    +
    +permissions: {}
    +
    +jobs:
    +  analysis:
    +    name: Scorecard analysis
    +    runs-on: ubuntu-latest
    +    timeout-minutes: 15
    +    permissions:
    +      # Needed to upload the results to the code-scanning dashboard.
    +      security-events: write
    +      # Needed to publish results and get a badge (see publish_results below).
    +      id-token: write
    +      contents: read
    +      actions: read
    +    steps:
    +      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
    +        with:
    +          persist-credentials: false
    +
    +      - uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4
    +        with:
    +          results_file: results.sarif
    +          results_format: sarif
    +          # Publish results to the OpenSSF REST API for the README badge and
    +          # https://scorecard.dev/viewer/?uri=github.com/cosmos/ibc-go

    <a href="#"><img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"></a> Comment links to another repository

    This URL opens the Scorecard for cosmos/ibc-go, not the results published by this workflow. A maintainer following it could inspect the wrong project. The README badge uses the correct cosmos/ibc URL.

              # https://scorecard.dev/viewer/?uri=github.com/cosmos/ibc
    

    Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

    dianab-cl dianab-cl commented on code on Oct 05, 2026 15:47 UTC
    Code Review
    .github/workflows/scorecard.yml:1
    @@ -0,0 +1,50 @@
    +# SPDX-License-Identifier: Apache-2.0
    +
    +name: OpenSSF Scorecard
    +
    +on:
    +  # For Branch-Protection check. Only the default branch is supported. See
    +  # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
    +  branch_protection_rule:
    +  push:
    +    branches: [main]
    +  schedule:
    +    - cron: "29 4 * * 1"
    +  workflow_dispatch:
    +
    +permissions: {}
    +
    +jobs:
    +  analysis:
    +    name: Scorecard analysis
    +    runs-on: ubuntu-latest
    +    timeout-minutes: 15
    +    permissions:
    +      # Needed to upload the results to the code-scanning dashboard.
    +      security-events: write
    +      # Needed to publish results and get a badge (see publish_results below).
    +      id-token: write
    +      contents: read
    +      actions: read
    +    steps:
    +      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
    +        with:
    +          persist-credentials: false
    +
    +      - uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4
    +        with:
    +          results_file: results.sarif
    +          results_format: sarif
    +          # Publish results to the OpenSSF REST API for the README badge and
    +          # https://scorecard.dev/viewer/?uri=github.com/cosmos/ibc-go

              # Publish results to the OpenSSF REST API for the README badge and
              # https://scorecard.dev/viewer/?uri=github.com/cosmos/ibc
    

    gjermundgaraba gjermundgaraba approved these changes on Oct 14, 2026 09:01 UTC
    Approved Reviewer

    Approved these changes.

    Assignees
    dianab-cl dianab-cl
    Labels
    risk: low confidence: 85.7% 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: 28.2% (LOW) · Higher = larger blast radius
    28.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: 85.7% · Lower = rushed or shallow review
    85.7%
    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: 4% · Safe to merge
    4%
    Repository