diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 92b560b..3da0c5a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,3 +6,8 @@ updates: interval: weekly time: "13:00" open-pull-requests-limit: 99 +- package-ecosystem: github-actions + directory: "/" + schedule: + interval: weekly + time: "05:23" diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9438d64..8606396 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -48,4 +48,4 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: EmbarkStudios/cargo-deny-action@v1 + - uses: EmbarkStudios/cargo-deny-action@v2 diff --git a/Cargo.toml b/Cargo.toml index 48dc20e..02f33c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gcp_auth" -version = "0.12.3" +version = "0.12.4" edition = "2021" rust-version = "1.82" repository = "https://github.com/hrvolapeter/gcp_auth" @@ -20,7 +20,6 @@ async-trait = "0.1" base64 = "0.22" bytes = "1" chrono = { version = "0.4.31", features = ["serde"] } -home = "0.5.5" http = "1" http-body-util = "0.1" hyper = { version = "1", default-features = false, features = ["client", "http1", "http2"] } diff --git a/src/config_default_credentials.rs b/src/config_default_credentials.rs index 4af9e49..208d64a 100644 --- a/src/config_default_credentials.rs +++ b/src/config_default_credentials.rs @@ -1,3 +1,5 @@ +#[cfg(target_family = "unix")] +use std::env; use std::path::PathBuf; use std::sync::Arc; @@ -110,7 +112,7 @@ struct RefreshRequest<'a> { #[cfg(target_family = "unix")] fn config_dir() -> Result { - let mut home = home::home_dir().ok_or(Error::Str("home directory not found"))?; + let mut home = env::home_dir().ok_or(Error::Str("home directory not found"))?; home.push(CONFIG_DIR); Ok(home) }