Skip to content

Commit 0bf198a

Browse files
committed
Set GitHub actions permissions explicitly
1 parent 13d8106 commit 0bf198a

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ on:
22
release:
33
types: [created]
44

5+
permissions:
6+
contents: write
7+
58
jobs:
69
release:
710
name: Release on ${{ matrix.target }}

.github/workflows/rust.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Rust
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
env:
69
CARGO_TERM_COLOR: always
710

0 commit comments

Comments
 (0)