We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d53d0d commit 50e2393Copy full SHA for 50e2393
.github/actions/check-authorization/action.yml
@@ -16,6 +16,12 @@ runs:
16
with:
17
result-encoding: string
18
script: |
19
+ // Skip authorization check if event is not pull_request_target
20
+ if (context.eventName !== 'pull_request_target') {
21
+ console.log(`Event type is ${context.eventName}, skipping authorization check`);
22
+ return null;
23
+ }
24
+
25
try {
26
const permissionResponse = await github.rest.repos.getCollaboratorPermissionLevel({
27
owner: context.repo.owner,
0 commit comments