Skip to content

Commit 5c1ca49

Browse files
authored
chore: add token permissions to GHA (#1590)
1 parent 10e8619 commit 5c1ca49

File tree

5 files changed

+19
-0
lines changed

5 files changed

+19
-0
lines changed

‎.github/workflows/build.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches:
88
- master
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
build:
1215
name: Build

‎.github/workflows/lint.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches:
88
- master
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
go-mod:
1215
runs-on: ubuntu-latest

‎.github/workflows/release.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@ on:
55
tags:
66
- '*'
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
goreleaser:
1013
runs-on: ubuntu-latest
14+
15+
permissions:
16+
contents: write
17+
1118
steps:
1219
-
1320
name: Checkout

‎.github/workflows/renovate.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- master
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
validate-renovate-config:
1316
name: Validate renovate.json

‎.github/workflows/test.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches:
88
- master
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
tests:
1215
name: Tests on ${{ matrix.os }} (Go ${{ matrix.go-version }})

0 commit comments

Comments
 (0)