Skip to content

Commit fda224f

Browse files
authored
Merge pull request #479 from arjundashrath/patch-1
Add token perms for ci.yaml
2 parents 122f853 + 99b217c commit fda224f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@ on:
1010
branches:
1111
- master
1212
- main
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:
@@ -50,4 +56,4 @@ jobs:
5056
env:
5157
GO111MODULE: "on"
5258
MONGODB_TEST_CXN: "localhost"
53-
run: make generate; if [ -z "$FIX_TEST" ]; then make build; make; else make build_accept; make $FIX_TEST; fi
59+
run: make generate; if [ -z "$FIX_TEST" ]; then make build; make; else make build_accept; make $FIX_TEST; fi

0 commit comments

Comments
 (0)