Skip to content

Commit eae349a

Browse files
authored
Merge pull request #2075 from turrisxyz/setup-permissions
chore: Set permissions for GitHub actions
2 parents 6f0167b + 8ed3773 commit eae349a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [master, v9]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build:
1114
name: build

.github/workflows/golangci-lint.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@ on:
1010
- v9
1111
pull_request:
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
golangci:
18+
permissions:
19+
contents: read # for actions/checkout to fetch code
20+
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
1521
name: lint
1622
runs-on: ubuntu-latest
1723
steps:

0 commit comments

Comments
 (0)