Repository navigation
[Sync] Update project files from source repository (a71aecc) - #345
Merged
mrz1836 merged 1 commit intoAug 13, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR syncs GitHub repository automation and security-hardening changes from the upstream source repository, primarily tightening workflow permission scopes and reducing injection risk by routing untrusted/variable data through env: rather than direct ${{ }} string interpolation in shells, jq, and scripts.
Changes:
- Refactors multiple reusable workflows and composite actions to route inputs/outputs via environment variables and adds targeted sanitization/validation to mitigate shell/jq/markdown injection.
- Tightens GitHub Actions permissions (notably removing unused
pages:write/id-token:writein coverage-related chains and adding explicit minimal scopes where needed). - Updates operational metadata/docs (labels, env defaults, repository feature docs) and improves supply-chain integrity checks (e.g., checksum verification, digest pinning).
Reviewed changes
Copilot reviewed 30 out of 30 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/sync-labels.yml | Removes PAT branching/logging and adds summary sanitization while continuing label sync with explicit permissions. |
| .github/workflows/stale-check.yml | Removes PAT branching/logging; standardizes on GITHUB_TOKEN and simplifies summary token reporting. |
| .github/workflows/pull-request-management.yml | Updates pinned checkout reference comment and keeps base-ref sparse checkout hardening intact. |
| .github/workflows/fortress.yml | Drops PAT preference in reusable-workflow secret wiring and tightens coverage-related permissions. |
| .github/workflows/fortress-warm-cache.yml | Hardens $GITHUB_ENV writes by base64-routing values and validating env-var names. |
| .github/workflows/fortress-test-suite.yml | Removes GH_PAT_TOKEN input and aligns secret passing with the reusable workflow token contract. |
| .github/workflows/fortress-test-matrix.yml | Digest-pins the busybox placeholder image and adds rationale comments. |
| .github/workflows/fortress-setup-config.yml | Documents security invariants and hardens $GITHUB_ENV writes when parsing env JSON. |
| .github/workflows/fortress-security-scans.yml | Updates scan failure-handling documentation and pins gitleaks action with updated commentary. |
| .github/workflows/fortress-release.yml | Routes tag/changelog content via env:, hardens shell interpolation points, and wires Slack webhook for GoReleaser announce integration. |
| .github/workflows/fortress-pre-commit.yml | Adds release-asset checksum verification and routes attacker-influenceable outputs through env: before shell use. |
| .github/workflows/fortress-coverage.yml | Adds branch-name validation gate, tightens permissions, env-routes attacker-influenceable values, and adds zip-slip/provenance guards. |
| .github/workflows/fortress-completion-report.yml | Hardens $GITHUB_ENV writes when expanding env JSON. |
| .github/workflows/fortress-benchmarks.yml | Digest-pins the busybox placeholder image and hardens $GITHUB_ENV writes. |
| .github/workflows/dependabot-auto-merge.yml | Refactors security classification to avoid PR-body heuristics, parameterizes advisory queries, and further env-routes PR-derived metadata. |
| .github/workflows/auto-merge-on-approval.yml | Hardens token handling for gh usage, enforces fork non-auto-merge, and counts only trusted approvals. |
| .github/labels.yml | Normalizes label descriptions to ASCII-friendly range notation. |
| .github/env/10-security.env | Clarifies shared vulnerability exclusion list semantics. |
| .github/env/00-core.env | Switches preferred token default from PAT to GITHUB_TOKEN. |
| .github/docs/repository-features.md | Updates documented security tooling and removes a malformed/incorrect link reference. |
| .github/actions/warm-redis-cache/action.yml | Uses a private mktemp scratch directory instead of predictable /tmp paths. |
| .github/actions/warm-cache/action.yml | Hardens $GITHUB_ENV writes when parsing env JSON. |
| .github/actions/validate-test-results/action.yml | Adds integer coercion and markdown/control-char stripping for artifact-derived data before arithmetic/summary output. |
| .github/actions/setup-mage/action.yml | Routes version input via env: to avoid ${{ }} string-splice into shell command arguments. |
| .github/actions/setup-go-with-cache/action.yml | Adds explicit security rationale for job-lifetime global git token configuration on ephemeral runners. |
| .github/actions/setup-benchstat/action.yml | Routes version input via env: to avoid ${{ }} string-splice into shell command arguments. |
| .github/actions/parse-env/action.yml | Documents security invariant and hardens $GITHUB_ENV writes with base64/value/name validation. |
| .github/actions/extract-module-dir/action.yml | Routes go-sum-file input via env: instead of direct interpolation. |
| .github/actions/download-artifact-resilient/action.yml | Avoids bash -c execution of built command strings and parameterizes jq regex handling. |
| .github/actions/configure-redis/action.yml | Routes JSON input via env: to prevent 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.
github-actions
Bot
deleted the
chore/sync-files-go-bitcoin-20260813-031521-a71aecc
branch
August 13, 2026 03:39
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
.github/labels.ymlto use ASCII-compatible range notation: changed em-dashes (–) to hyphens (-) in size labels and replaced≤with<=.github/actions/setup-go-with-cache/action.ymlexplaining that git token configuration is job-lifetime scoped and deliberately uses global config for ephemeral runners.github/actions/extract-module-dir/action.ymlto routego-sum-fileinput through environment variable instead of string interpolation.github/actions/parse-env/action.ymlto route all inputs (env-file,key-prefix,export-to-env) through environment variables with security comments.github/actions/download-artifact-resilient/action.ymlto use environment variables for all inputs (name,path,max-retries,retry-delay).github/actions/configure-redis/action.ymland.github/actions/setup-benchstat/action.ymlto route inputs through environment variables.github/actions/setup-mage/action.ymlto handleversioninput via environment variable.github/actions/warm-cache/action.ymland.github/actions/warm-redis-cache/action.ymlto use environment variables for input handling.github/actions/validate-test-results/action.ymlto route all test result paths and threshold inputs through environment variables with security annotations.github/env/10-security.envfromv0.22.0tov0.23.0and in.github/env/00-core.envfromv1.15.0tov1.16.0permissions: contents: readto multiple workflow files includingauto-merge-on-approval.yml,fortress-benchmarks.yml,fortress-pre-commit.yml,fortress-release.yml, and others.github/workflows/dependabot-auto-merge.ymlwith extensive permission scoping, input validation via environment variables, and security commentsWhy It Was Necessary
permissions: contents: readdeclarations follows security best practices by limiting workflow permissions to minimum required scopeTesting Performed
<=notationImpact / Risk