From 6efd1b3bb1217841269e67930cba33992fb96930 Mon Sep 17 00:00:00 2001 From: Ashish Kurmi <100655670+boahc077@users.noreply.github.com> Date: Sun, 6 Nov 2022 01:01:36 -0700 Subject: ci: set least privilged token for github actions for lint workflow (#5179) * ci: set least privilged token for github actions Signed-off-by: Ashish Kurmi * ci:reverting github actions permissions for all but lint workflow Signed-off-by: Ashish Kurmi --- .github/workflows/lint.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d437d7b..c8580d3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,9 +10,15 @@ on: - master - 2.* +permissions: + contents: read + jobs: # From https://github.com/golangci/golangci-lint-action golangci: + permissions: + contents: read # for actions/checkout to fetch code + pull-requests: read # for golangci/golangci-lint-action to fetch pull requests name: lint strategy: matrix: -- cgit v1.2.3