Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
Only call bundle-audit update in the Dockerfile, not from the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhammerl committed Jun 21, 2019
1 parent c5724eb commit 4475998
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/modules/ruby-bundler-scan/__tests__/bundler-unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ describe('Ruby Bundler Module', () => {

it('should execute command', async () => {
await run(fm)
expect(exec.command).to.have.been.calledTwice
expect(exec.command).to.have.been.calledWith('bundle-audit')
expect(exec.command).to.have.been.calledOnce
})

it('should log high severity issues', async () => {
Expand Down
1 change: 0 additions & 1 deletion lib/modules/ruby-bundler-scan/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ module.exports = {
},
run: async fm => {
logger.log('Updating bundler-audit database...')
await exec.command('bundle-audit update', { cwd: fm.target, shell: '/bin/bash' })
const { stdout } = await exec.command('bundle-audit', { cwd: fm.target, shell: '/bin/bash' })
const regex = {
name: /Name: /,
Expand Down

0 comments on commit 4475998

Please sign in to comment.