Skip to content

Commit 188a179

Browse files
committed
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".
1 parent 0708c1e commit 188a179

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/clippy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
runs-on: ubuntu-latest
1010
env:
1111
RUSTUP_TOOLCHAIN: stable
12+
permissions:
13+
checks: write
1214
steps:
1315
- uses: actions/checkout@v2
1416
if: github.event_name == 'pull_request_target'

0 commit comments

Comments
 (0)