Skip to content

github: add version-alignment job#348

Merged
eldenpark merged 6 commits intomainfrom
elden/version-alignment-1
Apr 9, 2026
Merged

github: add version-alignment job#348
eldenpark merged 6 commits intomainfrom
elden/version-alignment-1

Conversation

@eldenpark
Copy link
Copy Markdown
Contributor

Adds a version-alignment CI job that validates uniffi and Rust toolchain channel versions against org-level CI variables (UNIFFI_VERSION, RUST_TOOLCHAIN_CHANNEL). Reuses the composite action defined in worldcoin/bedrock rather than duplicating the logic here.

Adds a version-alignment CI job that validates uniffi and Rust
toolchain channel versions against org-level CI variables
(UNIFFI_VERSION, RUST_TOOLCHAIN_CHANNEL). Reuses the composite action
defined in worldcoin/bedrock rather than duplicating the logic here.
"log",
"mockito",
"rand 0.9.2",
"rand 0.8.5",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

do we know why this dep is being downgraded?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

rand wasn't intentionally downgraded. It was already pinned to ^0.8 in Cargo.toml. The 0.9.2 entry in the previous Cargo.lock came from a transitive dependency resolving to a newer version, but it wasn't something we directly depended on at that version.

This commit just brought the lock file back in line with what we actually declare.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown

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

Adds CI enforcement to keep the repo’s Rust toolchain and UniFFI versions aligned with organization-level GitHub Actions variables, and updates local toolchain/dependency versions accordingly.

Changes:

  • Bumps rust-toolchain.toml channel to 1.94.1.
  • Normalizes the workspace members formatting and pins uniffi to 0.31.0.
  • Adds a new version-alignment CI job that reuses the composite action from worldcoin/bedrock.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
rust-toolchain.toml Updates the pinned Rust toolchain channel.
Cargo.toml Formats workspace members and aligns uniffi version string with org variables.
Cargo.lock Updates locked dependency graph (notably rand resolution for some workspace crates).
.github/workflows/ci.yml Introduces a “Version Alignment” job using the Bedrock composite action.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- name: Checkout code
uses: actions/checkout@v6

- uses: worldcoin/bedrock/.github/actions/version-alignment@main
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

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

The workflow references the Bedrock composite action by branch (worldcoin/bedrock/.github/actions/version-alignment@main). For supply-chain safety and reproducibility, pin this to an immutable ref (a release tag or full commit SHA) instead of main, otherwise CI behavior can change (or be compromised) without any change in this repo.

Suggested change
- uses: worldcoin/bedrock/.github/actions/version-alignment@main
- uses: worldcoin/bedrock/.github/actions/version-alignment@<FULL_40_CHAR_COMMIT_SHA>

Copilot uses AI. Check for mistakes.
Comment on lines +24 to +26
- name: Checkout code
uses: actions/checkout@v6

Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

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

actions/checkout@v6 is referenced by a mutable tag. To make CI runs reproducible and reduce action supply-chain risk, pin this to a specific commit SHA (or at least a specific major+minor tag if your org policy allows).

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown

@aurel-fr aurel-fr Apr 8, 2026

Choose a reason for hiding this comment

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

I agree with this and we do pin to sha in other repos. I think it's more acceptable to reference a branch for repositories that belong to us like bedrock but for those actions that we don't own, it's safer to pin.

Copy link
Copy Markdown
Contributor Author

@eldenpark eldenpark Apr 8, 2026

Choose a reason for hiding this comment

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

@aurel-fr ^ Specified a commit SHA of the upstream repo (version alignment script)

@eldenpark eldenpark requested a review from aurel-fr April 8, 2026 21:47
Avoids relying on a mutable branch ref (main) for the upstream bedrock
composite action, preventing unexpected CI behavior changes from
upstream.
@eldenpark eldenpark merged commit f682611 into main Apr 9, 2026
16 checks passed
@eldenpark eldenpark deleted the elden/version-alignment-1 branch April 9, 2026 18:20
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.

3 participants