GitHub Workflows security hardening (#1180)
* build: harden golangci-lint.yml permissions Signed-off-by: Alex <aleksandrosansan@gmail.com> * Update golangci-lint.yml Signed-off-by: Alex <aleksandrosansan@gmail.com> --------- Signed-off-by: Alex <aleksandrosansan@gmail.com>
This commit is contained in:
parent
f51d823bda
commit
8b1a836e7d
|
@ -10,8 +10,15 @@ on:
|
|||
- ".golangci.yml"
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
|
||||
jobs:
|
||||
golangci:
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
pull-requests: read # to fetch pull requests (golangci/golangci-lint-action)
|
||||
|
||||
name: lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
Loading…
Reference in New Issue