You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Harden the release workflow by removing template expansions - #641
No actionable comments were generated in the recent review.
Walkthrough
The release workflow passes the input tag and resolved version to scripts through environment variables. Tag normalization, output generation, and metadata verification remain in place.
Changes: Release workflow inputs
Layer / File(s)
Summary
Pass release values through environment variables .github/workflows/release-wporg.yml
The tag-resolution step receives the input tag through TAG. The metadata-verification step receives the resolved version through VERSION.
Issue 602 describes inline workflow expression interpolation in release-wporg.yml. This PR updates the tag and version expressions it identifies, but does not cover the issue’s release-publish.yml items.
Possibly related PRs
WordPress/sqlite-database-integration#604: This PR also moves expression values in release-wporg.yml steps into environment variables, overlapping the changes here.
Suggested reviewers:janjakes
Merge Risk: Minimal · up to e3b59
The release workflow now receives the tag and version through environment variables instead of inline expressions, which hardens it against injection through those inputs. No actionable merge risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "Harden the release workflow by removing template expansions" matches the change. The workflow now passes the input tag and the resolved version through environment variables (TAG and VERSIO…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check
Explanation
The title "Harden the release workflow by removing template expansions" matches the change. The workflow now passes the input tag and the resolved version through environment variables (TAG and VERSION) instead of embedding ${{ }} expressions in shell commands. The PR objectives describe the same goal, so the title names the main change.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: 8e64b62d-97ad-4a95-8bd7-43bccca6817b
Commits
Reviewing files that changed from the base of the PR and between 2300409 and e3b5977.
Files selected for processing: 1
.github/workflows/release-wporg.yml
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
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
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.
This replaces the inline
${{ inputs.tag }}and${{ steps.resolve.outputs.version }}template expansion with environment variables.Ref: https://securitylab.github.com/resources/github-actions-untrusted-input/
This was originally reported to the security team by @Sweekar-cmd. Thanks!
Summary by CodeRabbit