Skip to content

Commit

Permalink
Merge pull request #397 from stakwork/feat/github-token
Browse files Browse the repository at this point in the history
chore: added GITHUB_REQUEST_TOKEN to jarvis
  • Loading branch information
tobi-bams authored Nov 14, 2024
2 parents fd98b9d + 3255215 commit 6d221d5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions second-brain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions src/images/jarvis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down
1 change: 1 addition & 0 deletions superadmin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6d221d5

Please sign in to comment.