Explorar o código

Add a permissions restriction (#7108)

Assisted-by: Antigravity with Gemini

---------

Co-authored-by: Dana Jansens <danakj@orodu.net>
Chandler Carruth hai 1 semana
pai
achega
5da651032f
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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