[Sync] Update project files from source repository (c939592) - #276
Merged
mrz1836 merged 1 commit intoAug 13, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Syncs workflow/action definitions from the source repository with a focus on security hardening: reducing shell interpolation risks, tightening default GitHub token usage, and applying least-privilege permissions across workflows.
Changes:
- Routed user-/PR-influenceable values through
env:(and added validation/sanitization) to reduce shell/jq/markdown injection risk. - Standardized token usage away from GH_PAT_TOKEN in several workflows and improved provenance/guardrails in automation logic.
- Hardened workflows with more explicit minimal
permissions:and supply-chain safeguards (digest pins, checksum verification).
Reviewed changes
Copilot reviewed 28 out of 28 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/sync-labels.yml | Removes PAT-selection logic; uses GITHUB_TOKEN; sanitizes attacker-influenceable summary fields. |
| .github/workflows/stale-check.yml | Removes PAT-selection logic; uses GITHUB_TOKEN; simplifies token reporting. |
| .github/workflows/pull-request-management.yml | Updates checkout reference comment/version and maintains hardened base-ref sparse checkout. |
| .github/workflows/fortress.yml | Propagates token/permission tightening through the main CI orchestrator. |
| .github/workflows/fortress-warm-cache.yml | Hardens $GITHUB_ENV writes from JSON via base64 + key/value validation. |
| .github/workflows/fortress-test-suite.yml | Removes GH_PAT_TOKEN workflow secret; aligns secret passing to reusable workflows; adjusts perms. |
| .github/workflows/fortress-test-matrix.yml | Pins busybox to digest when Redis disabled; adds supply-chain rationale. |
| .github/workflows/fortress-setup-config.yml | Adds security invariant docs and hardens $GITHUB_ENV writes from JSON. |
| .github/workflows/fortress-security-scans.yml | Updates gitleaks action pin/commentary for upstream runtime warnings. |
| .github/workflows/fortress-release.yml | Routes tag/config values through env; validates tag; reduces shell interpolation. |
| .github/workflows/fortress-pre-commit.yml | Adds checksum verification for downloaded assets; routes PR-derived outputs via env. |
| .github/workflows/fortress-coverage.yml | Adds branch-name validation + provenance filtering; tightens permissions and env routing. |
| .github/workflows/fortress-completion-report.yml | Hardens $GITHUB_ENV writes from JSON via base64 + validation. |
| .github/workflows/fortress-benchmarks.yml | Pins busybox to digest when Redis disabled; hardens $GITHUB_ENV writes. |
| .github/workflows/dependabot-auto-merge.yml | Reworks “security update” detection to structured advisory matching; routes metadata via env. |
| .github/workflows/auto-merge-on-approval.yml | Ensures GITHUB_TOKEN available for gh usage; hardens fork handling and approval counting. |
| .github/labels.yml | Replaces special characters with ASCII equivalents in label descriptions. |
| .github/env/00-core.env | Switches preferred token config from GH_PAT_TOKEN to GITHUB_TOKEN. |
| .github/actions/warm-redis-cache/action.yml | Uses mktemp -d private scratch dir instead of predictable /tmp paths. |
| .github/actions/warm-cache/action.yml | Hardens $GITHUB_ENV writes from JSON via base64 + validation. |
| .github/actions/validate-test-results/action.yml | Adds integer coercion + markdown sanitization for artifact-derived values. |
| .github/actions/setup-mage/action.yml | Routes mage version via env to avoid interpolation in shell install command. |
| .github/actions/setup-go-with-cache/action.yml | Adds security documentation around job-lifetime git token configuration. |
| .github/actions/setup-benchstat/action.yml | Routes benchstat version via env to avoid interpolation in shell install command. |
| .github/actions/parse-env/action.yml | Hardens $GITHUB_ENV writes from JSON via base64 + validation; adds security invariant note. |
| .github/actions/extract-module-dir/action.yml | Routes go-sum-file input via env before shell usage. |
| .github/actions/download-artifact-resilient/action.yml | Removes bash -c command-string execution; parameterizes jq regex; uses env vars safely. |
| .github/actions/configure-redis/action.yml | Routes env-json via env to avoid single-quote breakout in shell. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Owner
Author
|
LGTM! |
github-actions
Bot
deleted the
chore/sync-files-go-template-20260813-134012-c939592
branch
August 13, 2026 13:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Changed
<=operator in.github/labels.yml(size labels now use "201-500" instead of "201–500", "<=10" instead of "≤10")setup-go-with-cache/action.ymlexplaining that git token configuration is deliberately job-lifetime scoped and is destroyed with the ephemeral runnerbenchstat-versionthrough environment variable insetup-benchstat/action.ymlto prevent command injection via GitHub Actions interpolationextract-module-dir,configure-redis,parse-env,download-artifact-resilient,setup-mage,validate-test-results,warm-cache,warm-redis-cache) to prevent shell injectionMAGE_VERSIONfromv1.15.0tov1.15.1in.github/env/00-core.envpermissions:blocks with minimal required scopes across 15 workflow files, replacing implicit default permissionsWhy It Was Necessary
Testing Performed
Impact / Risk