From 339f6c19f4373c109b19ea8a65b0b74e562c5ae6 Mon Sep 17 00:00:00 2001 From: Andrew Bays Date: Thu, 1 Oct 2026 13:12:29 +0100 Subject: [PATCH] Restrict golangci-lint workflow token permissions --- .github/workflows/golangci-lint.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index 126bde49..3c1b57b9 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -2,6 +2,9 @@ name: Golang lint, vet and unit test pipeline on: [push, pull_request] +permissions: + contents: read + jobs: test: name: github (govet, golint and gotest)