Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

Commit 5a4b972

Browse files
authored
Merge pull request #49 from mattyatea/cursor/fix-github-actions-client-id-issue-3768
Fix github actions client id issue
2 parents fb018eb + caf2a44 commit 5a4b972

File tree

5 files changed

+31
-11
lines changed

5 files changed

+31
-11
lines changed

.github/workflows/ci-cd.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,19 @@ jobs:
3636
NODE_ENV: test
3737
JWT_SECRET: test-jwt-secret-for-ci
3838
REFRESH_TOKEN_SECRET: test-refresh-token-secret-for-ci
39+
GOOGLE_CLIENT_ID: test-google-client-id
40+
GOOGLE_CLIENT_SECRET: test-google-client-secret
41+
GH_OAUTH_CLIENT_ID: test-gh-oauth-client-id
42+
GH_OAUTH_CLIENT_SECRET: test-gh-oauth-client-secret
43+
JWT_ALGORITHM: HS256
44+
JWT_EXPIRES_IN: 7d
45+
RATE_LIMIT_ANONYMOUS: "100"
46+
RATE_LIMIT_AUTHENTICATED: "1000"
47+
RATE_LIMIT_API_KEY: "5000"
48+
EMAIL_FROM: noreply+zxcv@prism-project.net
49+
FRONTEND_URL: http://localhost:3000/
50+
APP_URL: http://localhost:3000
51+
ENVIRONMENT: test
3952

4053
- name: Security audit
4154
run: |

server/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
".nuxt/imports.d.ts",
3636
".nuxt/components.d.ts",
3737
"worker-configuration.d.ts",
38+
"worker-configuration.override.d.ts",
3839
"nuxt.d.ts"
3940
],
4041
"exclude": [

server/worker-configuration.d.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
// Runtime types generated with workerd@1.20250712.0 2025-07-15 no_nodejs_compat_v2,nodejs_compat
44
declare namespace Cloudflare {
55
interface Env {
6-
JWT_SECRET: "test-jwt-secret";
7-
GOOGLE_CLIENT_ID: "test-google-client-id";
8-
GOOGLE_CLIENT_SECRET: "test-google-client-secret";
9-
GH_OAUTH_CLIENT_ID: "test-gh-oauth-client-id";
10-
GH_OAUTH_CLIENT_SECRET: "test-gh-oauth";
116
JWT_ALGORITHM: "HS256";
127
JWT_EXPIRES_IN: "7d";
138
RATE_LIMIT_ANONYMOUS: "100";
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* eslint-disable */
2+
// Override auto-generated types for secrets
3+
// Secrets are provided at runtime via wrangler secret, not from wrangler.toml
4+
declare namespace Cloudflare {
5+
interface Env {
6+
JWT_SECRET: string;
7+
GOOGLE_CLIENT_ID: string;
8+
GOOGLE_CLIENT_SECRET: string;
9+
GH_OAUTH_CLIENT_ID: string;
10+
GH_OAUTH_CLIENT_SECRET: string;
11+
}
12+
}

server/wrangler.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ bucket_name = "zxcv"
2121
name = "EMAIL_SENDER"
2222

2323
[vars]
24-
JWT_SECRET = "test-jwt-secret"
25-
GOOGLE_CLIENT_ID = "test-google-client-id"
26-
GOOGLE_CLIENT_SECRET = "test-google-client-secret"
27-
GH_OAUTH_CLIENT_ID = "test-gh-oauth-client-id"
28-
GH_OAUTH_CLIENT_SECRET = "test-gh-oauth"
24+
# Non-secret configuration for production
25+
# Secrets (JWT_SECRET, GOOGLE_CLIENT_ID, etc.) are set via wrangler secret during deployment
2926
JWT_ALGORITHM = "HS256"
3027
JWT_EXPIRES_IN = "7d"
3128
RATE_LIMIT_ANONYMOUS = "100"
@@ -58,6 +55,8 @@ bucket_name = "zxcv-staging"
5855
name = "EMAIL_SENDER"
5956

6057
[env.staging.vars]
58+
# Non-secret configuration for staging
59+
# Secrets (JWT_SECRET, GOOGLE_CLIENT_ID, etc.) are set via wrangler secret during deployment
6160
JWT_ALGORITHM = "HS256"
6261
JWT_EXPIRES_IN = "7d"
6362
RATE_LIMIT_ANONYMOUS = "100"
@@ -71,4 +70,4 @@ ENVIRONMENT = "staging"
7170
# Workers Assets configuration for staging
7271
[env.staging.assets]
7372
binding = "ASSETS"
74-
directory = ".output/public"
73+
directory = ".output/public"

0 commit comments

Comments
 (0)