Преглед на файлове

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
     env:
       RUSTUP_TOOLCHAIN: stable
+    permissions:
+      checks: write
     steps:
       - uses: actions/checkout@v2
         if: github.event_name == 'pull_request_target'