Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/github-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"organization": "vertesia",
"name": "github-agent"
},
"profile": "staging-experiments"
"profile": "preview-github"
},
"devDependencies": {
"@octokit/types": "13.8.0",
Expand All @@ -30,8 +30,8 @@
"vitest": "^2.1.9"
},
"dependencies": {
"@dglabs/agent-runner": "0.9.3",
"@dglabs/cloud": "0.9.3",
"@dglabs/agent-runner": "0.10.0",
"@dglabs/cloud": "0.10.0",
"@temporalio/activity": "1.11.7",
"@temporalio/worker": "1.11.7",
"@temporalio/workflow": "1.11.7",
Expand Down
4 changes: 2 additions & 2 deletions apps/github-agent/src/activities/github.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createSecretProvider, SupportedCloudEnvironments } from '@dglabs/cloud';
import { createSecretProvider, SecretProviderKind } from '@dglabs/cloud';
import { Endpoints } from '@octokit/types';
import { App as OctoApp, Octokit } from 'octokit';

Expand All @@ -13,7 +13,7 @@ export const GITHUB_CODE_REVIEW_APP_ID = "1234461";
* @returns
*/
async function getVertesiaGithubAppKey() {
const vault = createSecretProvider(process.env.CLOUD as SupportedCloudEnvironments ?? SupportedCloudEnvironments.gcp)
const vault = createSecretProvider(SecretProviderKind.google_secret_manager)
return await vault.getSecret('github-vertesia-agent-code-review');
}

Expand Down
4 changes: 2 additions & 2 deletions apps/github-agent/src/activities/vertesia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* where for the 2nd pattern:
* - "Type" is the actual content type in the content store.
*/
import { createSecretProvider, SupportedCloudEnvironments } from '@dglabs/cloud';
import { createSecretProvider, SecretProviderKind } from '@dglabs/cloud';
import { log } from '@temporalio/activity';
import { VertesiaClient as VertesiaBaseClient } from "@vertesia/client";

Expand Down Expand Up @@ -238,7 +238,7 @@ export class VertesiaClient {


export async function createVertesiaClient(): Promise<VertesiaClient> {
const vault = createSecretProvider(SupportedCloudEnvironments.gcp)
const vault = createSecretProvider(SecretProviderKind.google_secret_manager)
const apiKey = await vault.getSecret('github-vertesia-agent-vertesia-api-key');

const client = new VertesiaBaseClient({
Expand Down
Loading