Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 13, 09:15 UTC
ci: set least privilged token for github actions for lint workflow (#5179)
* ci: set least privilged token for github actions Signed-off-by: Ashish Kurmi <akurmi@stepsecurity.io> * ci:reverting github actions permissions for all but lint workflow Signed-off-by: Ashish Kurmi <akurmi@stepsecurity.io>
Ashish Kurmi committed
Nov 6, 2022 at 01:01 UTC
6efd1b3bb1217841269e67930cba33992fb96930
1 file changed
+6
.github/workflows/lint.yml
+6
@@ -10,9 +10,15 @@ on:
10
- master
11
- 2.*
12
13
+permissions:
14
+ contents: read
15
+
16
jobs:
17
# From https://github.com/golangci/golangci-lint-action
18
golangci:
19
+ permissions:
20
+ contents: read # for actions/checkout to fetch code
21
+ pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
22
name: lint
23
strategy:
24
matrix: