From f2a7146b115e60a60cf6cbf1b49e315730786959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABlle=20Huisman?= Date: Mon, 25 Aug 2025 15:27:06 +0200 Subject: [PATCH] ci: add workflow permissions --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a362ce..e1db7d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,9 @@ on: branches: - main +permissions: + contents: read + env: RUSTFLAGS: '-Dwarnings' @@ -19,13 +22,10 @@ jobs: uses: actions/checkout@v4 - name: Set up Rust toolchain - run: rustup toolchain install stable --no-self-update --profile default --target wasm32-unknown-unknown - - - name: Set up Rust cache - uses: swatinem/rust-cache@v2 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: - cache-on-failure: true - save-if: ${{ github.ref == 'refs/heads/main' }} + components: clippy, rustfmt + target: wasm32-unknown-unknown - name: Check formatting run: cargo fmt --all --check