Przeglądaj źródła

Add a permissions restriction (#7108)

Assisted-by: Antigravity with Gemini

---------

Co-authored-by: Dana Jansens <danakj@orodu.net>
Chandler Carruth 1 tydzień temu
rodzic
commit
5da651032f
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      .github/workflows/check_dependent.yaml

+ 4 - 0
.github/workflows/check_dependent.yaml

@@ -7,6 +7,10 @@ on:
   pull_request_target:
     types: [opened, synchronize, labeled, unlabeled]
 
+# This workflow runs as `pull_request_target` so that the check can't be
+# disabled or bypassed by the PR, but it doesn't need any permissions.
+permissions: {}
+
 jobs:
   check_label:
     runs-on: ubuntu-latest