Skip to content

Commit

Permalink
Merge pull request #40 from safedep/fix/trusted-registry-param-handling
Browse files Browse the repository at this point in the history
fix/trusted registry param handling
  • Loading branch information
abhisek authored Aug 9, 2024
2 parents cfc6fa4 + ddcd58c commit 79ce773
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ export async function run(): Promise<void> {
pullRequestNumber: context.payload.pull_request?.number,
pullRequestComment: true,
exceptionFile,
trustedRegistries: trustedRegistries.split(',').map(r => r.trim())
trustedRegistries: trustedRegistries
.split(',')
.map(r => r.trim())
.filter(r => r.length > 0)
})

const reportPath = await vet.run(eventName, eventJson)
Expand Down

0 comments on commit 79ce773

Please sign in to comment.