]> git.proxmox.com Git - mirror_frr.git/commitdiff
tools: Replace pull_request_target to pull_request for commitlint action
authorDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 7 Feb 2023 21:16:41 +0000 (23:16 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 7 Feb 2023 21:16:41 +0000 (23:16 +0200)
Tested locally, it works. So it seems that, pull_request_target is not
working properly, let's check.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
.github/workflows/commitlint.yml

index e9c66a9036806158ed51fab221bbd2898d6001ff..f5a2e7d360e6ae9bd09e5561875aeea3d08ba839 100644 (file)
@@ -1,7 +1,7 @@
 name: commitlint
 
 on:
-  pull_request_target:
+  pull_request:
     types:
       - opened
       - reopened
@@ -14,6 +14,7 @@ jobs:
     if: github.repository == 'frrouting/frr'
     permissions:
       contents: read
+      pull-requests: read
     runs-on: ubuntu-latest
     steps:
       - name: Checkout