Repository navigation
docs(openspec): plan #2101 Add repo URI to ToolRun and SARIF - #3149
Conversation
|
Advisory pre-merge review (automated; a person decides). Recommendation: hold. The plan has two blockers and two major findings. Fix the plan before merge.
Checks that I ran:
What is good: every issue criterion maps to a group, the PR body uses "Plans #2101" with no closing keyword, and the paths exist. |
Read the remote with git config --local, guard the read as the commit read is guarded, use MODIFIED for the sarif-export requirement, define one entry per distinct clean pair, and add test paths, a docs group and an archive group.
|
I fixed the review findings in 8290bf7.
|
|
Advisory pre-merge review (automated; a person decides). Recommendation: hold. The plan has one major gap: a malformed remote URL can make a scan fail for a record. Fix it in the plan, then merge.
Checks that I ran:
|
Catch the ValueError of urlsplit, test the tree outside a checkout and the unreadable checkout, and list only the schema lines that group 2 reads.
…names-the-repository
|
I fixed the third review in 75b6bd7 (pushed as ef4038c with the merge of main).
|
|
Advisory pre-merge review (automated; a person decides). Recommendation: hold. The plan in group 1 breaks four existing tests, and it does not list them. Fix the plan, then merge.
What is good:
Checks that I ran:
|
…2101 plan Name the ten tests that fail without a config answer in their git fake, plan the answers, and show the global configuration case in Feasibility.
…names-the-repository
|
I fixed the fourth review in 690c76a (pushed as 5104db2 with the merge of main).
|
Plans #2101
This change adds a repository_uri field to ToolRun, read from git with
git config --local --get remote.origin.urland with the userinfo removed. A remote that is malformed, or is not an absolute URI with a host, gives None. The SARIF export writes versionControlProvenance with repositoryUri and revisionId, one entry for each distinct pair of repository URI and clean commit among the records of a tool. It writes none for a dirty commit or a record with no repository. The change modifies the sarif-export requirement that forbade versionControlProvenance. This satisfies SARIF 2.1.0 section 3.23.3, which requires repositoryUri in versionControlDetails, and section 3.23.4, which says a -dirty commit is not a revision of the scanned files. See #2101.Change:
openspec/changes/2101-a-tool-run-names-the-repository/