Skip to content

Commit

Permalink
Merge pull request #60 from github/jurre/tokens-from-env
Browse files Browse the repository at this point in the history
Grab job/credentials tokens from env
  • Loading branch information
Jurre authored and GitHub committed Jul 26, 2021
2 parents 85169c2 + c6e5683 commit e3da62e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions __tests__/updater-integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ describe('Updater', () => {
getCredentials: jest.fn(),
params: {
jobID: 1,
jobToken: 'xxx',
credentialsToken: 'yyy',
jobToken: process.env.JOB_TOKEN,
credentialsToken: process.env.CREDENTIALS_TOKEN,
dependabotAPIURL: 'http://host.docker.internal:3001'
}
}
Expand Down
6 changes: 3 additions & 3 deletions __tests__/updater.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ describe('Updater', () => {
getCredentials: jest.fn(),
params: {
jobID: 1,
jobToken: 'xxx',
credentialsToken: 'yyy',
dependabotAPIURL: 'http://localhost'
jobToken: process.env.JOB_TOKEN,
credentialsToken: process.env.CREDENTIALS_TOKEN,
dependabotAPIURL: 'http://host.docker.internal:3001'
}
}
const updater = new Updater(docker, mockAPIClient)
Expand Down

0 comments on commit e3da62e

Please sign in to comment.