From 2d523314d87279ae3e480131b94b73b2918c5e93 Mon Sep 17 00:00:00 2001
From: Alexander Hughes <Alexander.Hughes@pm.me>
Date: Fri, 29 Jan 2021 09:45:54 -0500
Subject: [PATCH] Bump linter from 1.29 to 1.36

Updating linter to latest version, which also updates
gosec to latest version to keep on top of updated security
checks in source code. Also disable gosec testing for rand.new.

Co-Authored-By: Alexander Hughes <Alexander.Hughes@pm.me>
Co-Authored-By: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I46e71c41597f70150ace6d9611da5a01f93a933d
Signed-off-by: Alexander Hughes <Alexander.Hughes@pm.me>
---
 pkg/secret/generate/encryptionkey.go | 2 +-
 tools/install_linter                 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/secret/generate/encryptionkey.go b/pkg/secret/generate/encryptionkey.go
index 5bda84b72..574d0d86f 100644
--- a/pkg/secret/generate/encryptionkey.go
+++ b/pkg/secret/generate/encryptionkey.go
@@ -54,7 +54,7 @@ func NewEncryptionKeyEngine(src rand.Source) *EncryptionKeyEngine {
 		src = &Source{}
 	}
 	return &EncryptionKeyEngine{
-		rng:  rand.New(src),
+		rng:  rand.New(src), //nolint:gosec
 		pool: pool,
 	}
 }
diff --git a/tools/install_linter b/tools/install_linter
index 9f5d402ab..535c26be2 100755
--- a/tools/install_linter
+++ b/tools/install_linter
@@ -3,7 +3,7 @@ set -x
 
 tools_bin_dir="${BASH_SOURCE%/*}"
 download_url=https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh
-version=v1.29.0
+version=v1.36.0
 
 if ! curl -sfL "$download_url" | sh -s -- -b "$tools_bin_dir/bin" "$version"; then
   printf "Something went wrong while installing golangci-lint\n" 1>&2