Skip to content

[Sync] Update project files from source repository (e29b66f) - #346

Merged
mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-bitcoin-20260814-233614-e29b66f
Aug 15, 2026
Merged

mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-bitcoin-20260814-233614-e29b66f

Conversation

@mrz1836

@mrz1836 mrz1836 commented Aug 14, 2026

Copy link
Copy Markdown
Member

What Changed

  • Added detailed comments in .github/actions/setup-benchstat/action.yml and .github/actions/setup-mage/action.yml explaining that SonarCloud rule S8545 is a false positive for pinned go install commands verified by Go's checksum database
  • Introduced a new esc_html() function in .github/actions/validate-test-results/action.yml that escapes HTML metacharacters (&, <, >) in addition to stripping backticks and control characters to prevent tag injection in GitHub step summaries
  • Updated multiple workflow files to use the esc_html() function for artifact-derived values (test names, package names) that are written into raw HTML elements like <summary> and <code> tags
  • Changed MAGE_X_VERSION from v0.4.0 to v0.5.0 in .github/env/10-mage-x.env
  • Changed GO_CORE_VERSION from 1.23.5 to 1.23.6 in .github/env/00-core.env

Why It Was Necessary

  • Documents the intentional suppression of SonarCloud security warnings for version-pinned Go tool installations, providing context for future maintainers and code reviewers
  • Prevents potential HTML injection attacks where crafted artifact content (e.g., malicious test names) could break out of HTML tags and spoof the rendered GitHub Actions summary structure
  • Updates Go core version and mage-x tooling to incorporate latest patches and improvements

Testing Performed

  • Verified that existing strip_bt() usage in markdown code spans/fences remains unchanged (entities would render literally there)
  • Confirmed esc_html() is applied only to values inserted into raw HTML contexts or markdown text where GitHub interprets inline HTML
  • Validated that version updates maintain compatibility with existing workflow definitions and dependency chains

Impact / Risk

  • Low risk: HTML escaping is a defensive security improvement that hardens the workflow against injection attacks without changing functional behavior
  • Documentation improvement: SonarCloud comments clarify intentional choices and prevent confusion about security tool findings
  • Version updates: Minor Go version bump (1.23.5 → 1.23.6) and mage-x update (v0.4.0 → v0.5.0) carry standard patch-level risk

Copilot AI lite review requested due to automatic review settings August 14, 2026 23:36
@mrz1836 mrz1836 self-assigned this Aug 14, 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 14, 2026
@github-actions github-actions Bot added update General updates size/M Medium change (51-200 lines) labels Aug 14, 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 GitHub Actions automation updates, primarily hardening step-summary rendering against HTML/tag injection, improving security/maintainer documentation in composite actions, and updating pinned tool versions used by CI workflows.

Changes:

  • Adds esc_html() to the test-results validation composite action and applies it to artifact-derived values written into raw HTML in $GITHUB_STEP_SUMMARY.
  • Routes JSON/config-derived values through env: in the release workflow to avoid ${{ }} string-splicing into shell scripts.
  • Updates CI/tooling pins (e.g., benchstat pseudo-version, govulncheck Go version) and adjusts workflow permissions/comments.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
.github/workflows/fortress.yml Updates GoFortress workflow version header and adjusts permissions/comments for downstream reusable workflows.
.github/workflows/fortress-test-suite.yml Updates coverage-job permissions (PR comment posting) in the orchestrator reusable workflow.
.github/workflows/fortress-release.yml Routes env-json and GO_MODULE_DIR via env: to reduce shell-injection surface when parsing config.
.github/workflows/fortress-coverage.yml Updates coverage job permissions and retains PR-comment creation via go-coverage tooling.
.github/env/10-mage-x.env Updates pinned MAGE_X_BENCHSTAT_VERSION.
.github/env/00-core.env Updates GOVULNCHECK_GO_VERSION.
.github/actions/validate-test-results/action.yml Introduces esc_html() and applies it to artifact-derived values written into raw HTML summary elements.
.github/actions/setup-mage/action.yml Adds comments explaining SonarCloud S8545 handling for pinned go install.
.github/actions/setup-benchstat/action.yml Adds comments explaining SonarCloud S8545 handling for pinned go install.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/fortress-coverage.yml Resolved
Comment thread .github/workflows/fortress.yml Resolved
Comment thread .github/env/10-mage-x.env Resolved
Comment thread .github/env/00-core.env Resolved
@mrz1836
mrz1836 merged commit 309f08b into master Aug 15, 2026
24 checks passed
@github-actions
github-actions Bot deleted the chore/sync-files-go-bitcoin-20260814-233614-e29b66f branch August 15, 2026 01:43
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/M Medium change (51-200 lines) update General updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants