Skip to content

[Sync] Update project files from source repository (2695cd1) - #343

Merged
mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-bitcoin-20260807-184522-2695cd1
Aug 7, 2026
Merged

mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-bitcoin-20260807-184522-2695cd1

Conversation

@mrz1836

@mrz1836 mrz1836 commented Aug 7, 2026

Copy link
Copy Markdown
Member

What Changed

  • Introduced a unified vulnerability exclusion system via SECURITY_VULN_EXCLUDES in .github/env/10-security.env to serve as a single source of truth for all dependency scanners
  • Deprecated Nancy scanning (marked as "DEPRECATED — disabled" in comments) and replaced it with OSV-Scanner as the primary multi-source dependency scanning tool
  • Updated security configuration documentation to explain that SECURITY_VULN_EXCLUDES supports multiple advisory ID formats (GO-YYYY-NNNN, GHSA-xxxx, CVE-YYYY-NNNN) and is adapted by the CI workflow for each tool's native mechanism
  • Maintained backwards compatibility for legacy per-tool variables (MAGE_X_CVE_EXCLUDES, NANCY_EXCLUDES) while recommending new projects use the unified SECURITY_VULN_EXCLUDES
  • Changed default value of SECURITY_VULN_EXCLUDES to empty, with guidance to add justified exclusions in 90-project.env with explanatory comments

Why It Was Necessary

  • Eliminate duplication and drift by consolidating vulnerability exclusions from multiple tool-specific variables into one centralized list
  • Replace Nancy with OSV-Scanner to provide broader vulnerability coverage through the OSV.dev database aggregating multiple sources
  • Improve maintainability by having security exclusions documented and managed in a single location while preserving existing project configurations

Testing Performed

  • Verified that the unified exclusion list format supports all three advisory ID namespaces (GO, GHSA, CVE) as documented
  • Confirmed backwards compatibility by ensuring legacy MAGE_X_CVE_EXCLUDES and NANCY_EXCLUDES variables are still honored via workflow merging logic
  • Validated that empty default for SECURITY_VULN_EXCLUDES prevents accidental security bypasses in new projects

Impact / Risk

  • Breaking Change: None - Nancy deprecation and legacy variable support ensures existing projects continue working without modification
  • Security Improvement: OSV-Scanner provides more comprehensive vulnerability detection across multiple databases compared to Nancy's OSS Index-only approach
  • Migration Path: Projects can migrate gradually from per-tool exclusions to the unified list at their own pace; no immediate action required

Copilot AI lite review requested due to automatic review settings August 7, 2026 18:45
@mrz1836 mrz1836 self-assigned this Aug 7, 2026
@mrz1836 mrz1836 added automated-sync Automated sync PR, e.g. from a fork or external repo automerge Label to automatically merge pull requests that meet all required conditions chore Simple dependency updates or version bumps labels Aug 7, 2026
@github-actions github-actions Bot added update General updates size/XL Very large change (>500 lines) labels Aug 7, 2026

Copilot AI left a comment

Copy link
Copy Markdown

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 syncs GoFortress security-scanning configuration into this repository, introducing a unified vulnerability exclusion list and adding OSV-Scanner as the primary multi-source dependency scanner while retiring Nancy by default.

Changes:

  • Added OSV-Scanner support (including SARIF upload to GitHub Code Scanning) and an enable flag wired through fortress setup → fortress runner → reusable security workflow.
  • Introduced a single shared exclusion list (SECURITY_VULN_EXCLUDES) merged with legacy per-tool variables to keep scanners in sync.
  • Disabled Nancy by default (migrating to Nancy v2 token semantics when enabled) and updated security tool version pins.

Reviewed changes

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

Show a summary per file
File Description
.github/workflows/fortress.yml Passes OSV enablement and permissions into the reusable security scan workflow; wires GUIDE_TOKEN through.
.github/workflows/fortress-setup-config.yml Adds an osv-enabled output and includes OSV in the “security scans enabled” gating logic and summary.
.github/workflows/fortress-security-scans.yml Implements unified exclusion merging, updates Nancy v2 behavior, and adds OSV-Scanner scanning + SARIF upload + aggregation logic.
.github/env/10-security.env Defines SECURITY_VULN_EXCLUDES and OSV-Scanner configuration/version pins; updates security scanning documentation.
.github/env/10-mage-x.env Updates Nancy version pin and adds an OSV-Scanner version pin for Mage-X parity.
.github/env/00-core.env Disables Nancy by default and enables OSV-Scanner by default.

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

Comment thread .github/env/10-security.env Resolved
@mrz1836
mrz1836 merged commit 4fd6417 into master Aug 7, 2026
25 checks passed
@github-actions
github-actions Bot deleted the chore/sync-files-go-bitcoin-20260807-184522-2695cd1 branch August 7, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated-sync Automated sync PR, e.g. from a fork or external repo automerge Label to automatically merge pull requests that meet all required conditions chore Simple dependency updates or version bumps size/XL Very large change (>500 lines) update General updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants