Skip to content

Harden the release workflow by removing template expansions - #641

Merged
JanJakes merged 1 commit into
trunkfrom
fix/release-workflow-hardening
Nov 26, 2026
Merged

JanJakes merged 1 commit into
trunkfrom
fix/release-workflow-hardening

Conversation

@johnbillion

@johnbillion johnbillion commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

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

  • Chores
    • Updated the release workflow to pass tag and version values through environment variables.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

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.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Refactor

Possibly related issues

  • 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

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed 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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • 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.

@JanJakes
JanJakes merged commit 3dd5b35 into trunk Nov 26, 2026
8 checks passed
@JanJakes
JanJakes deleted the fix/release-workflow-hardening branch November 26, 2026 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants