From 8be4ff483fc38712eabb4e4c2f8438d080e313d4 Mon Sep 17 00:00:00 2001 From: ghe Date: Wed, 12 Apr 2023 19:19:19 +0100 Subject: [PATCH] chore: drop usage of gh_token --- test/system/orgs:data/generic.test.ts | 2 +- test/system/orgs:data/github.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/system/orgs:data/generic.test.ts b/test/system/orgs:data/generic.test.ts index ad987709..6a46959d 100644 --- a/test/system/orgs:data/generic.test.ts +++ b/test/system/orgs:data/generic.test.ts @@ -13,7 +13,7 @@ describe('General `snyk-api-import orgs:data <...>`', () => { { env: { PATH: process.env.PATH, - GITHUB_TOKEN: process.env.GH_TOKEN, + GITHUB_TOKEN: process.env.GITHUB_TOKEN, SNYK_LOG_PATH: __dirname, }, }, diff --git a/test/system/orgs:data/github.test.ts b/test/system/orgs:data/github.test.ts index 0ddcd3c9..b5c91f76 100644 --- a/test/system/orgs:data/github.test.ts +++ b/test/system/orgs:data/github.test.ts @@ -15,7 +15,7 @@ describe('General `snyk-api-import orgs:data <...>`', () => { { env: { PATH: process.env.PATH, - GITHUB_TOKEN: process.env.GH_TOKEN, + GITHUB_TOKEN: process.env.GITHUB_TOKEN, SNYK_LOG_PATH: __dirname, }, }, @@ -26,7 +26,7 @@ describe('General `snyk-api-import orgs:data <...>`', () => { expect(stderr).toEqual(''); expect(err).toBeNull(); expect(stdout).toMatch( - 'Found 4 organization(s). Written the data to file: group-hello-github-com-orgs.json', + 'Found 2 organization(s). Written the data to file: group-hello-github-com-orgs.json', ); deleteFiles([ path.resolve(__dirname, `group-${groupId}-github-com-orgs.json`),