Browse Source

fic github token permissions

Narek Matevosyan 2 năm trước cách đây
mục cha
commit
980b088fc3

+ 3 - 0
.github/workflows/backend.yml

@@ -8,6 +8,9 @@ on:
     paths:
       - "kafka-ui-api/**"
       - "pom.xml"
+permissions:
+  checks: write
+  pull-requests: write      
 jobs:
   build-and-test:
     runs-on: ubuntu-latest

+ 2 - 0
.github/workflows/e2e-checks.yaml

@@ -8,6 +8,8 @@ on:
       - "kafka-ui-react-app/**"
       - "kafka-ui-e2e-checks/**"
       - "pom.xml"
+permissions:
+  statuses: write      
 jobs:
   build-and-test:
     runs-on: ubuntu-latest

+ 3 - 0
.github/workflows/frontend.yaml

@@ -8,6 +8,9 @@ on:
     paths:
       - "kafka-ui-contract/**"
       - "kafka-ui-react-app/**"
+permissions:
+  checks: write
+  pull-requests: write
 jobs:
   build-and-test:
     env:

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

@@ -2,7 +2,8 @@ name: "PR: Checklist linter"
 on:
   pull_request_target:
     types: [opened, edited, synchronize, reopened]
-
+permissions:
+  checks: write
 jobs:
   task-check:
     runs-on: ubuntu-latest

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

@@ -7,7 +7,9 @@ on:
   issues:
     types:
       - opened
-
+permissions:
+  issues: write
+  pull-requests: write
 jobs:
   welcome:
     runs-on: ubuntu-latest