diff --git a/dist/index.js b/dist/index.js index 504c803..1f7a594 100644 --- a/dist/index.js +++ b/dist/index.js @@ -33271,7 +33271,8 @@ class Vet { 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 { diff --git a/src/vet.ts b/src/vet.ts index 388a0d6..0f26e15 100644 --- a/src/vet.ts +++ b/src/vet.ts @@ -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}`)