Skip to content

Release 1.2.0#4

Merged
CodeforGood1 merged 6 commits into
CodeforGood1:mainfrom
Blackplane-Systems:main
May 10, 2026
Merged

Release 1.2.0#4
CodeforGood1 merged 6 commits into
CodeforGood1:mainfrom
Blackplane-Systems:main

Conversation

@CodeforGood1
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 10, 2026 18:10
@CodeforGood1 CodeforGood1 merged commit 0a269c1 into CodeforGood1:main May 10, 2026
5 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prepares the repository for the 1.2.0 release by bumping versions across the Python package and VS Code extension, and by improving handling of Windows-style C:\...:line locations in both the extension UI and SARIF generation.

Changes:

  • Fix Windows drive-letter path parsing for finding display (tree) and SARIF artifact locations.
  • Add/propagate a risk_summary field in the VS Code extension’s recomputed score payload (aligned with the Python scorer messaging).
  • Bump project/extension versions to 1.2.0 across Python + npm packaging metadata.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
vscode-src/findingsTree.ts Improves basename extraction for location strings, including Windows C:\...:line formats.
vscode-src/extension.ts Adds grade→risk summary mapping and adjusts recomputed score’s attack_surface + risk_summary.
tests/test_reporter.py Adds SARIF regression coverage for Windows drive paths.
src/contractguard/reporter.py Updates SARIF location parsing to preserve Windows drive paths; bumps SARIF tool version.
src/contractguard/init.py Bumps Python package version to 1.2.0.
pyproject.toml Bumps Python package version to 1.2.0.
package.json Bumps VS Code extension version to 1.2.0 and updates vsix output name.
package-lock.json Updates lockfile metadata to 1.2.0 and aligns package name metadata.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +23 to +31
function locationBasename(location: string): string {
const separator = location.lastIndexOf(':');
if (separator > 1) {
const suffix = location.slice(separator + 1);
if (/^\d+$/.test(suffix)) {
return path.basename(location.slice(0, separator));
}
}
return path.basename(location);
Comment thread vscode-src/extension.ts
.map((item) => item.attack_vector)
.filter((attackVector) => typeof attackVector === 'string' && attackVector.trim().length > 0)
)
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants