LDK Node Integration CI: Also patch LDK dependencies if `git`
What changed, and why it matters
This is a routine fix to an internal GitHub Actions CI workflow. The change ensures that when testing pull requests against the LDK Node project, the local copy of rust-lightning is patched in correctly even when LDK Node depends on it via a Git URL rather than crates.io. It has no effect on shipped code or user-facing security.
No security action required. This is a CI/test infrastructure improvement.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit modifies .github/workflows/ldk-node-integration.yml. It adds a second Cargo [patch] section keyed by the Git repository URL (https://github.com/lightningdevkit/rust-lightning) so that workspace crates are redirected to the local ../rust-lightning paths. Previously only [patch.crates-io] entries existed, which silently did nothing when LDK Node’s main branch switched to Git-based dependencies. The result is that CI now actually validates PR changes against LDK Node’s main branch.
Changed components
.github/workflows/ldk-node-integration.ymlInspect captured patch +13 / −0
diff --git a/.github/workflows/ldk-node-integration.yml b/.github/workflows/ldk-node-integration.yml
index 136a60b..446abd4 100644
--- a/.github/workflows/ldk-node-integration.yml
+++ b/.github/workflows/ldk-node-integration.yml
@@ -39,6 +39,19 @@ jobs:
lightning-transaction-sync = { path = "../rust-lightning/lightning-transaction-sync" }
lightning-liquidity = { path = "../rust-lightning/lightning-liquidity" }
lightning-macros = { path = "../rust-lightning/lightning-macros" }
+
+ [patch."https://github.com/lightningdevkit/rust-lightning"]
+ lightning = { path = "../rust-lightning/lightning" }
+ lightning-types = { path = "../rust-lightning/lightning-types" }
+ lightning-invoice = { path = "../rust-lightning/lightning-invoice" }
+ lightning-net-tokio = { path = "../rust-lightning/lightning-net-tokio" }
+ lightning-persister = { path = "../rust-lightning/lightning-persister" }
+ lightning-background-processor = { path = "../rust-lightning/lightning-background-processor" }
+ lightning-rapid-gossip-sync = { path = "../rust-lightning/lightning-rapid-gossip-sync" }
+ lightning-block-sync = { path = "../rust-lightning/lightning-block-sync" }
+ lightning-transaction-sync = { path = "../rust-lightning/lightning-transaction-sync" }
+ lightning-liquidity = { path = "../rust-lightning/lightning-liquidity" }
+ lightning-macros = { path = "../rust-lightning/lightning-macros" }
EOF
cargo check
cargo check --features uniffi
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.