Repository navigation
feat(review): name the repository in a tool run and the SARIF export - #3798
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 6, 2026 15:11
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/