Skip to content

ci: harden update-major-version workflow inputs - #477

Merged
peter-evans merged 1 commit into
mainfrom
ci/secure-update-major-version
Nov 24, 2026
Merged

peter-evans merged 1 commit into
mainfrom
ci/secure-update-major-version

Conversation

@peter-evans

Copy link
Copy Markdown
Owner

Hardens the update-major-version workflow against command and argument injection via the target input.

  • Pass workflow inputs to run steps via env instead of ${{ }} interpolation
  • Resolve target to a commit SHA with git rev-parse --verify --end-of-options before tagging
  • Pin actions/checkout to a commit SHA

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

This is a multi-line test comment

Edit: Some additional info

1 similar comment
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

This is a multi-line test comment

Edit: Some additional info

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

This is a multi-line test comment read from a file.
This is the second line. This is still the second line.

1 similar comment
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

This is a multi-line test comment read from a file.
This is the second line. This is still the second line.

@peter-evans
peter-evans merged commit db6c44f into main Nov 24, 2026
5 checks passed
@peter-evans
peter-evans deleted the ci/secure-update-major-version branch November 24, 2026 09:07
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.

1 participant