소스 검색

build: harden pull_request.yml permissions
Signed-off-by: Alex <[email protected]>

Alex 3 년 전
부모
커밋
8064a1d3cd
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      .github/workflows/pull_request.yml

+ 2 - 0
.github/workflows/pull_request.yml

@@ -6,6 +6,8 @@ name: checks_pr
       - master
   # Allows you to run this workflow manually from the Actions tab
   workflow_dispatch:
+permissions:
+  contents: read # to fetch code (actions/checkout)
 jobs:
   build:
     runs-on: ubuntu-latest