Skip to content

Commit

Permalink
Merge pull request prometheus#13288 from diogoteles08/feat/add-minimu…
Browse files Browse the repository at this point in the history
…m-permissions-to-script

scripts: Add minimal permissions to script golangci-lint.yml
  • Loading branch information
roidelapluie authored Dec 18, 2023
2 parents 10557ed + 1a8381a commit eec0069
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/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://github.com/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 eec0069

Please sign in to comment.