Skip to content

Commit 1d5cb63

Browse files
authored
ci: set explicit permissions (#229)
1 parent 05e9b1c commit 1d5cb63

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.github/workflows/_test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: test
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_call:
58
inputs:

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
name: Run CI Tests
33

4+
permissions:
5+
contents: read
6+
47
on:
58
push:
69
branches: [ main ]

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ env:
2525

2626
jobs:
2727
build:
28+
permissions:
29+
contents: read
2830
if: github.ref == 'refs/heads/main' || inputs.dangerous-nonmain-release
2931
environment: Scheduled testing
3032
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)