flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[CI] Pin remote installers and action versions instead of curl|sh and @master

Open blurbeast opened this issue 2 weeks ago • 5 comments

Overview & Background

Several CI/CD paths execute unpinned remote code: deploy-contracts.yml:61, testnet-e2e.yml:65, and scripts/deploy-preview.sh:104 all do curl ... | sh — downloading and executing whatever the remote serves at run time — and pr-preview.yml:114 uses superfly/flyctl-actions/setup-flyctl@master, a moving branch target. A compromised or hijacked upstream silently executes code with access to repo secrets in these workflows.


Technical Specification & Architecture

  1. Pin tools by version + checksum (download, verify, execute) instead of piping to a shell.
  2. Pin actions to full commit SHAs (or at least release tags), never @master.
  3. Apply consistently across all workflows and scripts.

Target Files

  • .github/workflows/deploy-contracts.yml
  • .github/workflows/testnet-e2e.yml
  • .github/workflows/pr-preview.yml
  • scripts/deploy-preview.sh

Acceptance Criteria

  • [ ] No curl | sh pattern remains in CI or scripts.
  • [ ] All GitHub Actions are pinned to immutable refs.
  • [ ] Tool installs verify integrity (checksum/signature).

blurbeast avatar Nov 18 '26 19:11 blurbeast

@code-0-stella has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

Hi, I’ve reviewed the issue and understand the requirements and the expected outcome. I have the necessary skills to implement the solution and would be happy to take ownership of it. Kindly assign it to me.

ℹ️ Repo Maintainers: To accept this application, review their application or assign @code-0-stella to this issue.

code-0-stella avatar Nov 19 '26 17:11 code-0-stella

@carterdev-001 has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

Hi maintainer please kindly assign me this issue to work on

ℹ️ Repo Maintainers: To accept this application, review their application or assign @carterdev-001 to this issue.

carterdev-001 avatar Nov 19 '26 19:11 carterdev-001

@damilareojetunde has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

I can work on this

ℹ️ Repo Maintainers: To accept this application, review their application or assign @damilareojetunde to this issue.

damilareojetunde avatar Nov 20 '26 12:11 damilareojetunde

Congratulations, @damilareojetunde! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.

🧑‍💻 @damilareojetunde: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

🌊 Happy Wave 🌊

drips-wave[bot] avatar Nov 20 '26 12:11 drips-wave[bot]

This issue has been completed by @damilareojetunde as part of the Stellar Wave Program's 11th Wave 🥳

😎 @damilareojetunde: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

drips-wave[bot] avatar Nov 21 '26 14:11 drips-wave[bot]