Skip to content

Commit 846ee0b

Browse files
authored
Merge pull request #152 from github/workflow-permissions
Add permissions blocks to workflows that lack them
2 parents ea9bd12 + 3ca5f0e commit 846ee0b

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Lint
23
on:
34
push:
@@ -11,6 +12,9 @@ on:
1112
- go.mod
1213
- go.sum
1314

15+
permissions:
16+
contents: read
17+
1418
jobs:
1519
lint:
1620
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Release
23

34
on:

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
---
12
on: [push, pull_request]
23
name: Test
4+
permissions:
5+
contents: read
36
jobs:
47
test:
58
strategy:

0 commit comments

Comments
 (0)