Skip to content

Commit aff615f

Browse files
authored
Merge pull request #412 from joycebrum/master
Set permissions to github workflows
2 parents 2d41827 + b237752 commit aff615f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/build.yml

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- cron: "40 4 * * *" # every day at 4:40
1111
pull_request:
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
stable:
1518
name: "Test MSRV and Stable Features"

.github/workflows/release.yml

+5
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ on:
55
branches:
66
- "master"
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
release:
1013
name: "Release"
1114
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
1217
timeout-minutes: 15
1318
environment: crates_io_release
1419

0 commit comments

Comments
 (0)