Skip to content

Commit 299b01e

Browse files
committed
actions: Add explict permissions.
1 parent 5f18b7d commit 299b01e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
workflow_dispatch:
66

7+
permissions:
8+
contents: read
9+
packages: read
10+
711
env:
812
CARGO_TERM_COLOR: always
913

@@ -20,7 +24,7 @@ jobs:
2024
run: cargo test --verbose
2125

2226
- name: Lint
23-
run: |
27+
run: |
2428
cargo fmt --all -- --check
2529
cargo clippy -- --deny warnings -D clippy::unwrap_used
2630
cargo clippy --tests -- --deny warnings -A clippy::unwrap_used

0 commit comments

Comments
 (0)