Explorar o código

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 %!s(int64=2) %!d(string=hai) anos
pai
achega
188a179f8f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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'