Repository navigation
fix(ci): build ferrflow from source instead of downloading from releases #200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -109,11 +109,16 @@ jobs: | |||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||
| fetch-depth: 0 | ||||||||||||||||||||||||||||
| token: ${{ secrets.FERRFLOW_TOKEN }} | ||||||||||||||||||||||||||||
| - uses: dtolnay/rust-toolchain@nightly | ||||||||||||||||||||||||||||
| - uses: Swatinem/rust-cache@v2 | ||||||||||||||||||||||||||||
| - name: Configure git | ||||||||||||||||||||||||||||
| run: git remote set-url origin https://x-access-token:${{ secrets.FERRFLOW_TOKEN }}@github.com/${{ github.repository }} | ||||||||||||||||||||||||||||
| - uses: FerrFlow-Org/ferrflow@v2 | ||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||
| dry_run: ${{ inputs.dry_run }} | ||||||||||||||||||||||||||||
| - name: Build ferrflow | ||||||||||||||||||||||||||||
| run: cargo build --release | ||||||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||||||
| FERRFLOW_HMAC_SECRET: ${{ secrets.FERRFLOW_HMAC_SECRET }} | ||||||||||||||||||||||||||||
| - name: Run ferrflow release | ||||||||||||||||||||||||||||
| run: ./target/release/ferrflow ${{ inputs.dry_run == 'true' && '--dry-run' || '' }} release | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
| run: ./target/release/ferrflow ${{ inputs.dry_run == 'true' && '--dry-run' || '' }} release | |
| run: ./target/release/ferrflow ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.dry_run && '--dry-run' || '' }} release |
Copilot
AI
Apr 1, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FERRFLOW_HMAC_SECRET is read via option_env! (compile-time), so setting it during cargo build --release bakes the secret into the produced binary and (with Swatinem/rust-cache) into the GitHub Actions cache. To avoid leaking a long-lived secret into cached artifacts, don’t provide this secret at compile time; instead disable telemetry in CI (e.g. set FERRFLOW_ANONYMOUS_TELEMETRY=false) or change the code to read the secret at runtime via std::env::var.
| FERRFLOW_HMAC_SECRET: ${{ secrets.FERRFLOW_HMAC_SECRET }} | |
| - name: Run ferrflow release | |
| run: ./target/release/ferrflow ${{ inputs.dry_run == 'true' && '--dry-run' || '' }} release | |
| env: | |
| FERRFLOW_TOKEN: ${{ secrets.FERRFLOW_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.FERRFLOW_TOKEN }} | |
| FERRFLOW_ANONYMOUS_TELEMETRY: "false" | |
| - name: Run ferrflow release | |
| run: ./target/release/ferrflow ${{ inputs.dry_run == 'true' && '--dry-run' || '' }} release | |
| env: | |
| FERRFLOW_TOKEN: ${{ secrets.FERRFLOW_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.FERRFLOW_TOKEN }} | |
| FERRFLOW_ANONYMOUS_TELEMETRY: "false" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cargo build --releasewill build all workspace members (includingferrflow-wasm) and extra bins, which adds time and increases the chance of unrelated build breakage in the release workflow. Consider restricting the build to the CLI binary needed here (e.g., build theferrflowpackage/bin only) to keep this job focused and faster.