Skip to content

Commit

Permalink
Merge pull request #78 from safedep/feat/support-pr-target-event
Browse files Browse the repository at this point in the history
feat: Add support for PR target event
  • Loading branch information
abhisek authored Oct 17, 2024
2 parents 13c644d + 67b0028 commit 00c5ac3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 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/vet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ export class Vet {
sarifReportPath = await this.runOnPush()
} else if (eventType === 'schedule') {
this.runOnSchedule()
} else if (eventType === 'pull_request') {
} else if (
eventType === 'pull_request' ||
eventType === 'pull_request_target'
) {
sarifReportPath = await this.runOnPullRequest()
} else {
throw new Error(`Unsupported event type: ${eventType}`)
Expand Down

0 comments on commit 00c5ac3

Please sign in to comment.