summaryrefslogtreecommitdiffhomepage
path: root/infra
diff options
context:
space:
mode:
authorFrank <[email protected]>2025-07-11 05:01:27 +0800
committerFrank <[email protected]>2025-07-11 05:01:27 +0800
commit1c4fd7f28ff776953c8f3b191dc19243e6c6c8d1 (patch)
tree10f64998872a9d459f7a0deb861c129f81ceea0a /infra
parent85805d2c38d0c2e4ddbdc749b5404f316b209c90 (diff)
downloadopencode-1c4fd7f28ff776953c8f3b191dc19243e6c6c8d1.tar.gz
opencode-1c4fd7f28ff776953c8f3b191dc19243e6c6c8d1.zip
Api: add endpoint for getting github app token
Diffstat (limited to 'infra')
-rw-r--r--infra/app.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/infra/app.ts b/infra/app.ts
index caaea0e9d..5c646d97c 100644
--- a/infra/app.ts
+++ b/infra/app.ts
@@ -4,6 +4,8 @@ export const domain = (() => {
return `${$app.stage}.dev.opencode.ai`
})()
+const GITHUB_APP_ID = new sst.Secret("GITHUB_APP_ID")
+const GITHUB_APP_PRIVATE_KEY = new sst.Secret("GITHUB_APP_PRIVATE_KEY")
const bucket = new sst.cloudflare.Bucket("Bucket")
export const api = new sst.cloudflare.Worker("Api", {
@@ -13,7 +15,7 @@ export const api = new sst.cloudflare.Worker("Api", {
WEB_DOMAIN: domain,
},
url: true,
- link: [bucket],
+ link: [bucket, GITHUB_APP_ID, GITHUB_APP_PRIVATE_KEY],
transform: {
worker: (args) => {
args.logpush = true