Skip to content

Commit

Permalink
Set minimal permisisions at golangci-lint.yml
Browse files Browse the repository at this point in the history
Implemented as discussed at prometheus#1294 and already implemented at prometheus/prometheus

Signed-off-by: Diogo Teles Sant'Anna <[email protected]>
  • Loading branch information
diogoteles08 authored Dec 29, 2023
1 parent c3fe609 commit 4a4c70d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@ on:
- ".golangci.yml"
pull_request:

permissions: # added using https:/step-security/secure-repo
contents: read

jobs:
golangci:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
name: lint
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 4a4c70d

Please sign in to comment.