Skip to content

Commit 01e8ef0

Browse files
authored
fix: use correct environment variable key (#368)
1 parent 9c4255c commit 01e8ef0

File tree

5 files changed

+5
-19
lines changed

5 files changed

+5
-19
lines changed

.github/workflows/test-e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
go build -o ory .
2323
./ory tunnel http://localhost:4001 --quiet &
2424
env:
25-
ORY_API_KEY: ${{ secrets.ORY_PROJECT_API_KEY }}
25+
ORY_PROJECT_API_KEY: ${{ secrets.ORY_PROJECT_API_KEY }}
2626
ORY_PROJECT_SLUG: admiring-tu-swczqlujc0
2727
- name: Install dependencies
2828
working-directory: cmd/cloudx/e2e
@@ -62,7 +62,7 @@ jobs:
6262
go build -o ory .
6363
./ory proxy https://ory-network-httpbin-ijakee5waq-ez.a.run.app/anything --rewrite-host --quiet &
6464
env:
65-
ORY_API_KEY: ${{ secrets.ORY_PROJECT_API_KEY }}
65+
ORY_PROJECT_API_KEY: ${{ secrets.ORY_PROJECT_API_KEY }}
6666
ORY_PROJECT_SLUG: admiring-tu-swczqlujc0
6767
- name: Install Node
6868
working-directory: cmd/cloudx/e2e

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
./ory proxy https://ory-network-httpbin-ijakee5waq-ez.a.run.app --quiet --rewrite-host &
2525
npm run test
2626
env:
27-
ORY_API_KEY: nokey
27+
ORY_PROJECT_API_KEY: nokey
2828
ORY_PROJECT_SLUG: affectionate-archimedes-s9mkjq77k0
2929
ORY_CONSOLE_URL: https://console.staging.ory.dev
3030
ORY_ORYAPIS_URL: https://staging.oryapis.dev

cmd/cloudx/client/api_key.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"context"
88
"errors"
99
"fmt"
10+
"os"
1011

1112
cloud "github.com/ory/client-go"
1213
"github.com/ory/x/cmdx"
@@ -65,7 +66,7 @@ func (h *CommandHelper) DeleteWorkspaceAPIKey(ctx context.Context, workspaceID,
6566
}
6667

6768
func (h *CommandHelper) TemporaryAPIKey(ctx context.Context, name string) (apiKey string, cleanup func() error, err error) {
68-
if ak := GetProjectAPIKeyFromEnvironment(); len(ak) > 0 {
69+
if ak := os.Getenv(ProjectAPIKey); len(ak) > 0 {
6970
return ak, noop, nil
7071
}
7172

cmd/cloudx/client/tokens.go

Lines changed: 0 additions & 13 deletions
This file was deleted.

cmd/cloudx/project/patch_oauth2_config_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ func TestPatchHydraConfig(t *testing.T) {
5151
},
5252
} {
5353
t.Run(tc.name, func(t *testing.T) {
54-
t.Parallel()
55-
5654
runWithProjectAsDefault(ctx, t, defaultProject.Id, tc.doPatch)
5755
runWithProjectAsFlag(ctx, t, extraProject.Id, tc.doPatch)
5856
})

0 commit comments

Comments
 (0)