Skip to content

Commit

Permalink
GitHub Workflows security hardening (#1180)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
sashashura committed May 17, 2023
1 parent f51d823 commit 8b1a836
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/golangci-lint.yml
Expand Up @@ -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:
Expand Down

0 comments on commit 8b1a836

Please sign in to comment.