From 1a8381a5011e17328d059ab80d3963cac3e507b4 Mon Sep 17 00:00:00 2001 From: Diogo Teles Sant'Anna Date: Wed, 13 Dec 2023 16:30:06 -0300 Subject: [PATCH] Add minimal permissions to script golangci-lint.yml Signed-off-by: Diogo Teles Sant'Anna --- scripts/golangci-lint.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/golangci-lint.yml b/scripts/golangci-lint.yml index 805c59fb7..4b292229d 100644 --- a/scripts/golangci-lint.yml +++ b/scripts/golangci-lint.yml @@ -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: