浏览代码

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