Browse Source

GitHub Workflows security hardening (#90124)

Alex 3 years ago
parent
commit
7fc0a571f4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      .github/workflows/docs-preview-links.yml

+ 3 - 1
.github/workflows/docs-preview-links.yml

@@ -8,6 +8,8 @@ on:
 
 jobs:
   doc-preview:
+    permissions:
+      pull-requests: write
     runs-on: ubuntu-latest
     steps:
       - uses: actions/github-script@v6
@@ -23,4 +25,4 @@ jobs:
               owner: context.repo.owner,
               repo: context.repo.repo,
               body: comment,
-            });
+            });