Skip to content

Commit

Permalink
chore: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vuhuucuong committed May 7, 2020
1 parent e609569 commit 017fd7f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions scripts/utils/git-secrets.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const removeTempCredFile = () => {

/**
* FLOW:
* 1. GET AWS secrets from PATH and ~/.aws/credentials
* 1. GET AWS secrets from environment variables and ~/.aws/credentials
* 2. Merge those secrets into one file (temporary file)
* 3. Register AWS provider for git-secrets using the file in step 2
* 4. Scan for secrets in staged files using git secrets --scan
Expand All @@ -57,13 +57,9 @@ const run = () => {
console.log('Added AWS provider\n', stdoutAddProvider)

// scan for secrets
const { error: errorScan, stdout: stdoutScan, stderr: stderrScan } = shell.exec(
'git secrets --scan --cached',

{
stdio: 'inherit',
},
)
const { error: errorScan, stdout: stdoutScan, stderr: stderrScan } = shell.exec('git secrets --scan --cached', {
stdio: 'inherit',
})
if (errorScan) throw errorScan
if (stderrScan) throw stderrScan
console.log('No secrets found in staged files!\n', stdoutScan)
Expand Down

0 comments on commit 017fd7f

Please sign in to comment.