From 3e93b82db56cefe8ef1d65e54c7b1b6fb5d0447b Mon Sep 17 00:00:00 2001 From: Joseph Kato Date: Wed, 9 Oct 2024 14:45:15 -0700 Subject: [PATCH] WIP --- .github/workflows/golangci-lint.yml | 1 - internal/lint/code/comments_test.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 8b9d2e01..5f52b479 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -24,7 +24,6 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - skip-go-installation: true # Require: The version of golangci-lint to use. # When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version. # When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit. diff --git a/internal/lint/code/comments_test.go b/internal/lint/code/comments_test.go index 7618d443..d64df519 100644 --- a/internal/lint/code/comments_test.go +++ b/internal/lint/code/comments_test.go @@ -50,7 +50,7 @@ func TestComments(t *testing.T) { markup := toJSON(comments) if markup != string(b2) { bin := filepath.Join(binDir, fmt.Sprintf("%d.json", i)) - _ = os.WriteFile(bin, []byte(markup), os.ModePerm) + _ = os.WriteFile(bin, []byte(markup), 0600) t.Errorf("%s", markup) } }