Skip to content

Fix: Incorrect input references directly in shell script contexts#78

Merged
tykeal merged 1 commit intolfreleng-actions:mainfrom
modeseven-lfreleng-actions:update-action
Sep 10, 2025
Merged

Fix: Incorrect input references directly in shell script contexts#78
tykeal merged 1 commit intolfreleng-actions:mainfrom
modeseven-lfreleng-actions:update-action

Conversation

@ModeSevenIndustrialSolutions
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings August 21, 2025 00:11
@github-actions github-actions bot added the bug Something isn't working label Aug 21, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes security vulnerabilities by preventing direct shell injection of GitHub Actions inputs. Instead of directly interpolating input values into shell scripts, the changes use environment variables as an intermediary to safely pass input values to shell scripts.

  • Replaces direct ${{ inputs.* }} references in shell scripts with environment variables
  • Adds proper variable assignment and quoting for shell safety
  • Fixes boolean comparison logic for the purge_artefact_path input

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@ModeSevenIndustrialSolutions ModeSevenIndustrialSolutions changed the title Fix: incorrect input references directly in shell script contexts Fix: Incorrect input references directly in shell script contexts Aug 21, 2025
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
@tykeal tykeal merged commit b0821ff into lfreleng-actions:main Sep 10, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants