Skip to content

Commit 0160727

Browse files
committed
chore: bump golangci-lint and handle gosec warnings
Signed-off-by: Stoyan Zhelyazkov <stoyan.zhelyazkov@broadcom.com>
1 parent db516c2 commit 0160727

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ jobs:
4343
- name: Run Linters
4444
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
4545
with:
46-
version: v2.1.6
46+
version: v2.11.3

vsphere/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,10 @@ func (c *Config) EnableDebug() error {
284284
} else {
285285
// reuse the same path
286286
r = filepath.Join(r, run)
287-
_ = os.RemoveAll(r)
287+
_ = os.RemoveAll(r) // nolint (gosec G703)
288288
}
289289

290-
err := os.MkdirAll(r, 0700)
290+
err := os.MkdirAll(r, 0700) // nolint (gosec G703)
291291
if err != nil {
292292
log.Printf("[ERROR] Client debug setup failed: %v", err)
293293
return err

vsphere/resource_vsphere_host_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,5 @@ resource "vsphere_host" "h1" {
827827
os.Getenv("ESX_USERNAME"),
828828
os.Getenv("ESX_PASSWORD"),
829829
serversStr)
830-
log.Printf("Generated Terraform configuration: %s", config)
831830
return config
832831
}

0 commit comments

Comments
 (0)