From 7d3830a514ca2c2eda7a9b5dfc4a089b3f628c82 Mon Sep 17 00:00:00 2001 From: Alex Crawford Date: Mon, 8 Aug 2022 14:28:06 -0700 Subject: [PATCH] Limit the permissions of the API token in the examples This action only requires read/write access to the "checks" scope. When the "permissions" object is present, all of the scopes default to "none". --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index de8bdf6f..069063f1 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,8 @@ name: Clippy check jobs: clippy_check: runs-on: ubuntu-latest + permissions: + checks: write steps: - uses: actions/checkout@v1 - uses: actions-rs/toolchain@v1 @@ -42,6 +44,8 @@ name: Clippy check jobs: clippy_check: runs-on: ubuntu-latest + permissions: + checks: write steps: - uses: actions/checkout@v1 - run: rustup component add clippy