Skip to content

ci: pin GitHub Actions to full commit SHAs - #89

Merged
rtyler merged 8 commits into
mainfrom
ci/pin-actions-to-sha
Oct 16, 2026
Merged

rtyler merged 8 commits into
mainfrom
ci/pin-actions-to-sha

Conversation

@rtyler

@rtyler rtyler commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

The delta-incubator org policy rejects any workflow uses: reference that is
not pinned to a full-length commit SHA. Jobs that used tag references failed
at startup with:

all actions must be pinned to a full-length commit SHA

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 😄

rtyler and others added 7 commits October 14, 2026 23:38
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>
@rtyler
rtyler marked this pull request as ready for review October 15, 2026 12:53
@rtyler
rtyler requested a review from roeap October 15, 2026 12:53
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>
@rtyler
rtyler merged commit 321cdcf into main Oct 16, 2026
9 of 10 checks passed
@rtyler
rtyler deleted the ci/pin-actions-to-sha branch October 16, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants