Skip to content

[Sync] Update project files from source repository (c939592) - #169

Merged
mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-pre-commit-20260813-130852-c939592
Aug 13, 2026
Merged

mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-pre-commit-20260813-130852-c939592

Conversation

@mrz1836

@mrz1836 mrz1836 commented Aug 13, 2026

Copy link
Copy Markdown
Owner

What Changed

  • Updated label descriptions in .github/labels.yml to use ASCII-compatible dashes and symbols instead of Unicode characters (en-dashes – replaced with hyphens -, ≤ replaced with <=)
  • Added security invariant documentation to multiple GitHub Actions (.github/actions/parse-env/action.yml, .github/actions/setup-benchstat/action.yml, .github/actions/download-artifact-resilient/action.yml, and others) warning against using these actions with privileged tokens on untrusted refs
  • Hardened parse-env action to base64-encode environment variable values, validate variable names against strict patterns, and reject newline-bearing values to prevent injection attacks
  • Enhanced validate-test-results action with improved error handling, coverage metrics validation, and additional safety checks for parsing test output
  • Added permissions: contents: read declarations to multiple workflow files (.github/workflows/dependabot-auto-merge.yml, .github/workflows/fortress-release.yml, .github/workflows/auto-merge-on-approval.yml, and others)
  • Updated MAGE_VERSION from v1.12.1 to v1.12.2 in .github/env/00-core.env
  • Refactored workflows to explicitly reference environment variables through quoted shell variables instead of direct GitHub expression interpolation for security hardening
  • Modified several workflows to use env: context for passing values between jobs instead of direct output interpolation

Why It Was Necessary

  • The Unicode characters in label descriptions could cause compatibility issues with various tools and systems that expect ASCII-only text
  • Direct interpolation of GitHub expressions (${{ }}) into shell commands in privileged workflow contexts (like pull_request_target or workflow_run) creates injection vulnerabilities where untrusted PR content could execute arbitrary code
  • Environment variable parsing without proper validation and encoding could allow malicious input to corrupt the $GITHUB_ENV file or inject commands through newlines and special characters

Testing Performed

  • Label YAML syntax changes are validated by the sync-labels workflow
  • Security hardening changes follow defense-in-depth patterns documented in the security invariant comments
  • All modified actions include additional validation logic and error handling to fail safely when encountering malformed input

Impact / Risk

  • Low Risk: Label description changes are cosmetic and don't affect functionality
  • Security Improvement: The security hardening significantly reduces the attack surface for supply-chain and code injection attacks through malicious PRs
  • Non-Breaking: Changes maintain backward compatibility while adding additional safety constraints; legitimate workflows continue to function normally

@mrz1836 mrz1836 self-assigned this Aug 13, 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 13, 2026
@github-actions github-actions Bot added update General updates size/XL Very large change (>500 lines) labels Aug 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage Analysis

🟢 Overall Coverage: 91.5%
No Go files modified in this PR

Project coverage remains at 91.5% (3.2K/3.5K statements)

Changes: 28 config files

Coverage Metrics

Metric Value Grade Trend
Percentage 91.5% 🏆 A 📊
Statements 3.2K/3.5K 🏆 A No change
Quality Score 91.5/100 🏆 A 📈

Coverage Breakdown

█████████████░░ 91.5%

Resources


Generated via go-coverage • 2026-08-13 13:13:56 UTC

github-actions Bot added a commit that referenced this pull request Aug 13, 2026
🏷️ Generated with GoFortress
@mrz1836
mrz1836 merged commit 06aa1d9 into master Aug 13, 2026
24 checks passed
@github-actions
github-actions Bot deleted the chore/sync-files-go-pre-commit-20260813-130852-c939592 branch August 13, 2026 13:16
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.

1 participant