Skip to content

Commit

Permalink
Grab job/credentials tokens from env
Browse files Browse the repository at this point in the history
This makes it easier for everyone to put in credentials without
accidentally committing them, and as a bonus will also prevent secret
scanning from firing on these.
  • Loading branch information
Jurre Stender committed Jul 26, 2021
1 parent 85169c2 commit c6e5683
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 c6e5683

Please sign in to comment.