From 32552155b292cf77bdaa92c0428231cca2e8f44d Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 14 Nov 2024 14:28:45 +0100 Subject: [PATCH] chore: added GITHUB_REQUEST_TOKEN to jarvis --- second-brain.yml | 1 + sphinx.yml | 1 + src/images/jarvis.rs | 5 +++++ superadmin.yml | 1 + 4 files changed, 8 insertions(+) diff --git a/second-brain.yml b/second-brain.yml index b85b8ac4..1504ddc4 100644 --- a/second-brain.yml +++ b/second-brain.yml @@ -101,6 +101,7 @@ services: - LOCAL_LLAMA=$LOCAL_LLAMA - QUESTION_AND_ANSWER_WORKFLOW_ID=$QUESTION_AND_ANSWER_WORKFLOW_ID - AWS_S3_BUCKET_NAME=$AWS_S3_BUCKET_NAME + - GITHUB_REQUEST_TOKEN=$GITHUB_REQUEST_TOKEN networks: sphinx-swarm: diff --git a/sphinx.yml b/sphinx.yml index c5844d85..9d6a1713 100644 --- a/sphinx.yml +++ b/sphinx.yml @@ -75,6 +75,7 @@ services: - SUPER_TOKEN=$SUPER_TOKEN - SUPER_URL=$SUPER_URL - AWS_S3_BUCKET_NAME=$AWS_S3_BUCKET_NAME + - GITHUB_REQUEST_TOKEN=$GITHUB_REQUEST_TOKEN networks: sphinx-swarm: diff --git a/src/images/jarvis.rs b/src/images/jarvis.rs index 427f9a3c..f13b9530 100644 --- a/src/images/jarvis.rs +++ b/src/images/jarvis.rs @@ -216,6 +216,11 @@ fn jarvis( question_and_answer_workflow_id )); } + + if let Ok(github_request_token) = getenv("GITHUB_REQUEST_TOKEN") { + env.push(format!("GITHUB_REQUEST_TOKEN={}", github_request_token)) + } + Config { image: Some(format!("{}:{}", img, node.version)), hostname: Some(domain(&name)), diff --git a/superadmin.yml b/superadmin.yml index 43138e0c..dc5b18c7 100644 --- a/superadmin.yml +++ b/superadmin.yml @@ -92,6 +92,7 @@ services: - QUESTION_AND_ANSWER_WORKFLOW_ID=$QUESTION_AND_ANSWER_WORKFLOW_ID - AWS_S3_BUCKET_NAME=$AWS_S3_BUCKET_NAME - AWS_USER_ROLE=$AWS_USER_ROLE + - GITHUB_REQUEST_TOKEN=$GITHUB_REQUEST_TOKEN networks: sphinx-swarm: