Skip to content

Commit

Permalink
ci: restrict token permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
KisaragiEffective committed May 30, 2024
1 parent 6e8e499 commit af537af
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ on:
paths:
- '.github/workflows/**'

permissions:
contents: read

jobs:
actionlint:
name: actionlint with reviewdog
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cargo-deny.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- '.github/workflows/cargo-deny.yml'
- 'Cargo.lock'

permissions:
contents: read

jobs:
cargo-deny:
name: check
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/rust-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ env:
CARGO_TERM_COLOR: always
CI_RUST_CACHE_VERSION: v0

permissions:
contents: read

jobs:
build:
strategy:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ env:
CARGO_TERM_COLOR: always
CI_RUST_CACHE_VERSION: v1

permissions:
contents: read

jobs:
build:
strategy:
Expand Down

0 comments on commit af537af

Please sign in to comment.