ソースを参照

Get rid of pull_request_target modes

Roman Zabaluev 2 年 前
コミット
17cde82dff

+ 2 - 2
.github/workflows/backend.yml

@@ -3,7 +3,7 @@ on:
   push:
     branches:
       - master
-  pull_request_target:
+  pull_request:
     types: ["opened", "edited", "reopened", "synchronize"]
     paths:
       - "kafka-ui-api/**"
@@ -29,7 +29,7 @@ jobs:
           key: ${{ runner.os }}-sonar
           restore-keys: ${{ runner.os }}-sonar
       - name: Build and analyze pull request target
-        if: ${{ github.event_name == 'pull_request_target' }}
+        if: ${{ github.event_name == 'pull_request' }}
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_BACKEND }}

+ 1 - 1
.github/workflows/e2e-checks.yaml

@@ -1,6 +1,6 @@
 name: "E2E: PR healthcheck"
 on:
-  pull_request_target:
+  pull_request:
     types: [ "opened", "edited", "reopened", "synchronize" ]
     paths:
       - "kafka-ui-api/**"

+ 1 - 1
.github/workflows/frontend.yaml

@@ -3,7 +3,7 @@ on:
   push:
     branches:
       - master
-  pull_request_target:
+  pull_request:
     types: ["opened", "edited", "reopened", "synchronize"]
     paths:
       - "kafka-ui-contract/**"

+ 1 - 1
.github/workflows/pr-checks.yaml

@@ -1,6 +1,6 @@
 name: "PR: Checklist linter"
 on:
-  pull_request_target:
+  pull_request:
     types: [opened, edited, synchronize, reopened]
 
 jobs:

+ 1 - 1
.github/workflows/welcome-first-time-contributors.yml

@@ -1,7 +1,7 @@
 name: Welcome first time contributors
 
 on:
-  pull_request_target:
+  pull_request:
     types:
       - opened
   issues: