nit compile
This commit is contained in:
@@ -951,9 +951,11 @@ pub async fn handle_ansible_job(
|
||||
let mut secret_url = git_repo_resource.get("url").and_then(|s| s.as_str()).map(|s| s.to_string())
|
||||
.ok_or(anyhow!("Failed to get url from git repo resource, please check that the resource has the correct type (git_repository)"))?;
|
||||
|
||||
#[cfg(feature = "enterprise")]
|
||||
let is_github_app = git_repo_resource.get("is_github_app").and_then(|s| s.as_bool())
|
||||
.ok_or(anyhow!("Failed to get `is_github_app` field from git repo resource, please check that the resource has the correct type (git_repository)"))?;
|
||||
|
||||
#[cfg(feature = "enterprise")]
|
||||
if is_github_app {
|
||||
if let Connection::Sql(db) = conn {
|
||||
let token = get_github_app_token_internal(db, &client.token).await?;
|
||||
|
||||
Reference in New Issue
Block a user