diff --git a/tools/ci-build/runtime-versioner/src/command/audit.rs b/tools/ci-build/runtime-versioner/src/command/audit.rs index 46f04fbbeda35e325e3c15ecc935a5947fba1035..1071ff3414bc4b38e8d5469a9d3bee847e5d4a1c 100644 --- a/tools/ci-build/runtime-versioner/src/command/audit.rs +++ b/tools/ci-build/runtime-versioner/src/command/audit.rs @@ -232,8 +232,17 @@ fn fetch_smithy_rs_tags(repo: &Repo) -> Result<()> { .expect("valid utf-8") .trim() .to_string(); - if origin_url != "git@github.com:smithy-lang/smithy-rs.git" { - bail!("smithy-rs origin must be 'git@github.com:smithy-lang/smithy-rs.git' in order to get the latest release tags"); + if ![ + "git@github.com:smithy-lang/smithy-rs.git", + "https://github.com/smithy-lang/smithy-rs.git", + ] + .iter() + .any(|url| *url == origin_url) + { + bail!( + "smithy-rs origin must be either 'git@github.com:smithy-lang/smithy-rs.git' or \ + 'https://github.com/smithy-lang/smithy-rs.git' in order to get the latest release tags" + ); } repo.git(["fetch", "--tags", "origin"])