Repository navigation
ci: pin GitHub Actions to full commit SHAs - #89
Merged
Merged
Conversation
The delta-incubator org policy rejects any action reference that is not pinned to a full-length commit SHA. Every workflow job that used a tag reference failed at startup with: all actions must be pinned to a full-length commit SHA Pin each action used by commitlint.yml and test.yaml to the commit its tag resolves to, keeping the original tag as a trailing comment. The tag objects of annotated tags were dereferenced to their commits. Verified: both workflow files parse as YAML and every uses: line is pinned. Not verified: the workflows themselves, which run on GitHub. Signed-off-by: R Tyler Croy <rtyler@scribd.com> Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
…tions The policy-openfga job used openfga/action-openfga-test, a composite action that references further unpinned actions the org policy rejects. Install the fga CLI with the already-pinned install action and run `fga model test` directly, matching the command the repo justfile uses. The integration job ran `cargo test` for the whole workspace, which builds the Tauri app crate and needs GTK/WebKit system libraries this job does not install. Scope it to the workspace without the app crate. Verified: the workflow parses as YAML, every uses: line is SHA-pinned, and the integration test scope builds locally with --features integration-pg. Not verified: the jobs themselves, which run on GitHub. Signed-off-by: R Tyler Croy <rtyler@scribd.com> Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The build job runs `cargo clippy --tests` with RUSTFLAGS=-D warnings on the stable toolchain. Newer clippy lints made it fail on existing code, so the job never reached the integration and test steps. Fix the lints in hand-written code: - Widen S3EncryptionHeaders to pub(crate) so the crate-visible field does not expose a private type. - Use io::Error::other and drop a redundant reference in format!. - Replace bool::then(..).unwrap_or_default() with explicit if/else in the derive macro, and drop an unused binding. - Replace Option::is_none_or with map_or(true, ..) to keep the crate's declared MSRV of 1.81. - Factor the in-memory association map into a type alias. - Allow too_many_arguments on the table list endpoint, which mirrors its query parameters. - Prefix unused parameters on the remove_association todo stub. - Allow dead_code on the CLI config credential type, which is only deserialized. - Declare uuid's serde feature in delta-sharing-common, since Object derives Serialize and Deserialize over Uuid. Generated code under gen/ is not edited. Lints raised by generated output are allowed at the module that includes it, so the next regeneration does not revert them. A duplicated sqlx cfg_attr in the generated Resource discriminant is a generator config issue and is allowed for now. The fix belongs in buf.gen.yaml and should be made with a regeneration. Result-large-err is allowed in openfga. Boxing the error would change the public error type. Verified: `RUSTFLAGS=-D warnings cargo clippy --workspace --exclude app --tests` passes, `cargo fmt -- --check` passes, and `cargo test --workspace --exclude app --lib` passes. Not verified: the Postgres integration tests, which need the CI Postgres service. Signed-off-by: R Tyler Croy <rtyler@scribd.com> Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The Rust ObjectLabel is generated from the Resource oneof, which includes sharing_schema_info and sharing_table. The object_label enum created in 03_graph.up.sql does not have those values, so inserting a sharing table or sharing schema fails with: invalid input value for enum object_label: "sharing_table" Add the two values in a new migration. ALTER TYPE ... ADD VALUE is additive and safe to apply to existing databases. The down migration rebuilds the enum without the two values, since Postgres cannot drop a value from an enum. It deletes rows that use them first. Verified: the crate builds with the integration-pg feature. Not verified: the migration against a live Postgres server. The CI integration job runs graph_store tests with #[sqlx::test], which applies every migration to a fresh database, so it covers the up migration. Signed-off-by: R Tyler Croy <rtyler@scribd.com> Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Stable clippy 1.99 reports two lint families that the earlier pass, run on 1.98, did not: - redundant_field_names on the thiserror #[from] source fields in aws/mod.rs and gcp/credential.rs. The Generic variant becomes a tuple variant and InvalidKey a tuple variant with a positional message. Conversions are unchanged. - double_must_use on every trait declared with #[async_trait]. The async-trait macro adds #[must_use] to each method, which duplicates the must_use on the boxed future. The macro output cannot be changed, so the lint is allowed once per crate, at the crate root, in the five crates that use async_trait (cloud-client, common, postgres, profiles, server). Verified with the stable 1.99 toolchain CI uses: RUSTFLAGS=-D warnings cargo clippy --workspace --exclude app --tests passes, cargo fmt -- --check passes, and cargo test --workspace --exclude app --tests --features integration-pg passes against PostgreSQL 15 in a Podman container, including the graph store tests that cover the object_label migration. Signed-off-by: R Tyler Croy <rtyler@scribd.com> Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Move the ubuntu jobs from ubuntu-22.04 to ubuntu-latest, and keep the matrix platform checks that gate the GTK/WebKit dependency install in step with it. The toolchain is already stable, so jobs build with the latest stable Rust. Verified: the workflow parses as YAML and every uses: line stays SHA-pinned. Not verified: the jobs themselves, which run on GitHub. Signed-off-by: R Tyler Croy <rtyler@scribd.com> Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
ubuntu-latest is Ubuntu 24.04, which no longer packages libwebkit2gtk-4.0-dev, so apt-get install failed in the build and unit jobs. Tauri uses the 4.1 package, which 24.04 provides, so drop the 4.0 package from both install steps. Confirmed against the ubuntu:24.04 package index: libwebkit2gtk-4.1-dev, libappindicator3-dev, librsvg2-dev, and patchelf resolve, and libwebkit2gtk-4.0-dev has no candidate. Signed-off-by: R Tyler Croy <rtyler@scribd.com> Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The store lookup compared a String against store_name.as_ref(). On Windows, the dependency graph includes windows_strings, which adds a second PartialEq and AsRef impl for String. The target type of as_ref() is then ambiguous and delta-sharing-openfga fails to compile with E0283. Compare against store_name.as_str(), which is unambiguous on every platform. The behavior is unchanged. Verified locally: cargo fmt -- --check, the workspace clippy gate with RUSTFLAGS=-D warnings on stable 1.99, and the openfga tests. The Windows build is verified by CI. Signed-off-by: R Tyler Croy <rtyler@scribd.com> Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
roeap
approved these changes
Oct 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The delta-incubator org policy rejects any workflow
uses:reference that isnot pinned to a full-length commit SHA. Jobs that used tag references failed
at startup with:
This caused the failing checks on #88. The Windows unit failure on #88 had the
same cause.
In trying to have the 🦜 rev the GitHub Actions, I asked it to fix all the other failures so that the build goes ✔️ so other PRs can be mergeable again 😄