From 1e6276d858c5afb38182b3fe20acbdd8e8fa9ca8 Mon Sep 17 00:00:00 2001 From: Michele Minelli Date: Mon, 5 Jan 2026 12:23:24 -0800 Subject: [PATCH] Fix GH NoAuth (#248) --- modules/Cargo.lock | 2 +- runtime/Cargo.lock | 4 ++-- runtime/plaid-stl/Cargo.toml | 2 +- runtime/plaid/Cargo.toml | 2 +- runtime/plaid/src/apis/github/mod.rs | 7 ++++--- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/modules/Cargo.lock b/modules/Cargo.lock index 6ec24ccd..4bc9cfac 100644 --- a/modules/Cargo.lock +++ b/modules/Cargo.lock @@ -208,7 +208,7 @@ checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" [[package]] name = "plaid_stl" -version = "0.35.4" +version = "0.35.5" dependencies = [ "base64 0.13.1", "chrono", diff --git a/runtime/Cargo.lock b/runtime/Cargo.lock index 454067c1..3de1b92c 100644 --- a/runtime/Cargo.lock +++ b/runtime/Cargo.lock @@ -3461,7 +3461,7 @@ checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" [[package]] name = "plaid" -version = "0.35.4" +version = "0.35.5" dependencies = [ "aes", "alkali", @@ -3524,7 +3524,7 @@ dependencies = [ [[package]] name = "plaid_stl" -version = "0.35.4" +version = "0.35.5" dependencies = [ "base64 0.13.1", "chrono", diff --git a/runtime/plaid-stl/Cargo.toml b/runtime/plaid-stl/Cargo.toml index b8dcb24b..65465041 100644 --- a/runtime/plaid-stl/Cargo.toml +++ b/runtime/plaid-stl/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "plaid_stl" -version = "0.35.4" +version = "0.35.5" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/runtime/plaid/Cargo.toml b/runtime/plaid/Cargo.toml index 4f842f5a..700f461a 100644 --- a/runtime/plaid/Cargo.toml +++ b/runtime/plaid/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "plaid" -version = "0.35.4" +version = "0.35.5" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/runtime/plaid/src/apis/github/mod.rs b/runtime/plaid/src/apis/github/mod.rs index 35351367..a6294a30 100644 --- a/runtime/plaid/src/apis/github/mod.rs +++ b/runtime/plaid/src/apis/github/mod.rs @@ -28,9 +28,6 @@ use super::ApiError; #[derive(Deserialize)] #[serde(untagged)] pub enum Authentication { - /// Do not use any authentication when making requests to the GitHub API. This will - /// limit you to only public APIs that do not require authentication. - NoAuth {}, /// If you provide a token then we will initialize the client using that /// method of authentication. This is generally simpler to set up but less /// secure and doesn't have access to all the same APIs (for example approving @@ -44,6 +41,10 @@ pub enum Authentication { installation_id: u64, private_key: String, }, + /// Do not use any authentication when making requests to the GitHub API. This will + /// limit you to only public APIs that do not require authentication. + /// NOTE - THIS MUST BE LAST IN THE ENUM BECAUSE IT ACTS AS A CATCH-ALL. + NoAuth {}, } #[derive(Deserialize)]