Skip to content

Add CI policy checks and 1Password env rendering#156

Merged
chipp merged 2 commits into
mainfrom
deps-2026-05-16
May 16, 2026
Merged

Add CI policy checks and 1Password env rendering#156
chipp merged 2 commits into
mainfrom
deps-2026-05-16

Conversation

@chipp
Copy link
Copy Markdown
Owner

@chipp chipp commented May 16, 2026

  • Add clippy and cargo-deny jobs to PR workflow
  • Add deny.toml, MIT licenses for workspace crates, and jsonwebtoken update
  • Fix existing clippy warnings so the new CI check passes
  • Render Pi env files with op inject templates

@chipp chipp force-pushed the deps-2026-05-16 branch from 770bd64 to e2321f0 Compare May 16, 2026 07:57
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a deny.toml configuration for cargo-deny and adds MIT license fields to all workspace crates. It includes various refactorings to improve code quality and address Clippy lints, such as boxing large error variants, simplifying iterator chains, and removing unnecessary references or explicit lifetimes. Additionally, the render_pi_env.sh script was refactored to use op inject for secret management. I have no feedback to provide.

@chipp chipp force-pushed the deps-2026-05-16 branch 7 times, most recently from 1050066 to 5e1fbda Compare May 16, 2026 11:24
- Add clippy and cargo-deny jobs to PR workflow
- Add deny.toml, MIT licenses for workspace crates, and jsonwebtoken update
- Fix existing clippy warnings so the new CI check passes
- Render Pi env files with op inject templates

Pinned gh actions by shas
@chipp chipp force-pushed the deps-2026-05-16 branch from 5e1fbda to 7b08e27 Compare May 16, 2026 11:47
@chipp
Copy link
Copy Markdown
Owner Author

chipp commented May 16, 2026

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the Rust toolchain to version 1.95.0, bumps several dependencies (including jsonwebtoken and rand), and adds a deny.toml configuration for license and advisory checks. Significant changes include the integration of openssl-probe in the transport library to improve SSL certificate discovery for MQTT connections and various refactorings to address Clippy lints and improve code safety. Feedback highlights a potential panic in lib/transport/src/lib.rs due to an unchecked unwrap() and suggests making the op_account in scripts/render_pi_env.sh configurable via environment variables.

Comment thread lib/transport/src/lib.rs
};

let response = client.connect(conn_opts).await?;
let response = response.connect_response().unwrap();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Using unwrap() on connect_response() is risky. While a successful connection is expected to return a response, it's safer to handle the None case gracefully to avoid a potential panic, especially in a library function that might be used in different contexts.

Comment thread scripts/render_pi_env.sh Outdated
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@chipp chipp merged commit 964784b into main May 16, 2026
14 checks passed
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.

1 participant