Skip to content

feat(review): name the repository in a tool run and the SARIF export - #3798

Merged
dan-petty merged 4 commits into
mainfrom
feat/2101-a-tool-run-names-the-repository
Nov 6, 2026
Merged

dan-petty merged 4 commits into
mainfrom
feat/2101-a-tool-run-names-the-repository

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A ToolRun now holds the origin remote of the checkout with the userinfo removed, read from git. The SARIF run of a tool writes versionControlProvenance with repositoryUri and revisionId for each distinct clean commit and repository pair. A dirty commit or a missing repository writes none, as SARIF 2.1.0 sections 3.23.3 and 3.23.4 require.

Closes #2101

Change: openspec/changes/archive/2026-11-06-2101-a-tool-run-names-the-repository/

Read remote.origin.url from the checkout with git config --local, strip the
userinfo, and keep only an absolute URI with a host. A tree outside a checkout,
a checkout with no remote, and a checkout that git cannot read record no
repository, as they record no commit.
The run of a tool holds one versionControlProvenance entry for each distinct
pair of repository URI and clean commit among its records. A -dirty commit
identifies no revision of the scanned files, and a missing repository URI
leaves the required repositoryUri empty, so neither adds an entry.
@dan-petty dan-petty added type/feature Type feature: a new function scope/review Multi-persona code review engine, verification, and findings labels Nov 6, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 15:11
@dan-petty
dan-petty merged commit 6d12548 into main Nov 6, 2026
24 checks passed
@dan-petty
dan-petty deleted the feat/2101-a-tool-run-names-the-repository branch November 6, 2026 15:12
dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.70.0](v0.69.1...v0.70.0)
(2026-11-06)


### Features

* **review:** name the repository in a tool run and the SARIF export
([#3798](#3798))
([6d12548](6d12548))


### Bug Fixes

* **k8s:** a log query dials the loki.url setting
([#3802](#3802))
([98686f4](98686f4))
* **k8s:** loki values name the Monolithic deployment mode
([#3800](#3800))
([cf4ac8f](cf4ac8f))


### Code Refactoring

* **ai:** ai callers use the HTTP entry point
([#3801](#3801))
([2f2548b](2f2548b)),
closes [#3791](#3791)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/review Multi-persona code review engine, verification, and findings type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(review): Add repository URI to SARIF versionControlProvenance

1 participant