From 24b512d1e9378a5bda01564b9b0aa0664eb84a48 Mon Sep 17 00:00:00 2001 From: nikita42 Date: Tue, 7 Apr 2026 19:30:11 +0300 Subject: [PATCH] ci: harden workflow permissions and pin rust-toolchain action --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 318ebdb..6b0ace6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [main] +permissions: + contents: read + env: CARGO_TERM_COLOR: always RUSTFLAGS: "-Dwarnings" @@ -26,7 +29,7 @@ jobs: rust: "1.75" steps: - uses: actions/checkout@v6 - - uses: dtolnay/rust-toolchain@master + - uses: dtolnay/rust-toolchain@stable with: toolchain: ${{ matrix.rust }} - uses: Swatinem/rust-cache@v2