From f810c43d5e42b9f116f6b837a24d9e384add253e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mustafa=20=C3=96NCEL?= Date: Sat, 23 Sep 2023 04:37:49 +0300 Subject: [PATCH] Limit permissions on actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mustafa ÖNCEL --- .github/workflows/rust-clippy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/rust-clippy.yml b/.github/workflows/rust-clippy.yml index 9ea0d46..7945b2b 100644 --- a/.github/workflows/rust-clippy.yml +++ b/.github/workflows/rust-clippy.yml @@ -8,6 +8,8 @@ # and https://rust-lang.github.io/rust-clippy/ name: rust-clippy analyze +permissions: + contents: read on: push: @@ -30,6 +32,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4.0.0 with: + persist-credentials: false fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Install Rust toolchain