Skip to content

Commit fc7ad1a

Browse files
ci: add workflow permissions (#6)
1 parent 97517ca commit fc7ad1a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches:
77
- main
88

9+
permissions:
10+
contents: read
11+
912
env:
1013
RUSTFLAGS: '-Dwarnings'
1114

@@ -19,13 +22,10 @@ jobs:
1922
uses: actions/checkout@v4
2023

2124
- name: Set up Rust toolchain
22-
run: rustup toolchain install stable --no-self-update --profile default --target wasm32-unknown-unknown
23-
24-
- name: Set up Rust cache
25-
uses: swatinem/rust-cache@v2
25+
uses: actions-rust-lang/setup-rust-toolchain@v1
2626
with:
27-
cache-on-failure: true
28-
save-if: ${{ github.ref == 'refs/heads/main' }}
27+
components: clippy, rustfmt
28+
target: wasm32-unknown-unknown
2929

3030
- name: Check formatting
3131
run: cargo fmt --all --check

0 commit comments

Comments
 (0)