Skip to content

ci: bind package-path workflow input before shell use - #168

Merged
joncinque merged 1 commit into
solana-program:mainfrom
SashaMIT:ci/bind-package-path-input-env
Aug 6, 2026
Merged

ci: bind package-path workflow input before shell use#168
joncinque merged 1 commit into
solana-program:mainfrom
SashaMIT:ci/bind-package-path-input-env

Conversation

@SashaMIT

@SashaMIT SashaMIT commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Binds inputs.package-path into step env: before shell use in publish-rust.yml and publish-js.yml.

Context

GitHub Actions expands ${{ inputs.* }} before the shell runs. Binding through env: keeps the value out of the script text when computing TARGET.

Test plan

  • Confirm publish workflows still validate
  • Next publish path still computes TARGET from package-path

Made with Cursor

Move inputs.package-path into step env before bash interpolation in
publish-rust.yml and publish-js.yml.

Co-authored-by: Cursor <cursoragent@cursor.com>

@joncinque joncinque left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for your contribution! This variable isn't actually susceptible to the injection attack since it comes from a choice, but it can't hurt to do the right thing

@joncinque
joncinque merged commit dbd8943 into solana-program:main Aug 6, 2026
29 checks passed
SashaMIT added a commit to SashaMIT/oss-contributions that referenced this pull request Aug 6, 2026
@SashaMIT

SashaMIT commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the reviews and merges across the program repos, @joncinque. Happy to pick up anything adjacent if it ever comes up.

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