瀏覽代碼

Limit the permissions of the clippy action

actions-rs/clippy-check only requires read/write access to the
"checks" scope. When the "permissions" object is present, all of the
scopes default to "none".
Alex 2 年之前
父節點
當前提交
188a179f8f
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      .github/workflows/clippy.yml

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

@@ -9,6 +9,8 @@ jobs:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     env:
     env:
       RUSTUP_TOOLCHAIN: stable
       RUSTUP_TOOLCHAIN: stable
+    permissions:
+      checks: write
     steps:
     steps:
       - uses: actions/checkout@v2
       - uses: actions/checkout@v2
         if: github.event_name == 'pull_request_target'
         if: github.event_name == 'pull_request_target'