Skip to content

Fix CLI usage with no pre-set context/config #910

Fix CLI usage with no pre-set context/config

Fix CLI usage with no pre-set context/config #910

Triggered via pull request September 19, 2024 21:49
Status Failure
Total duration 2m 18s
Artifacts 1

lint.yaml

on: pull_request
Lint Go
21s
Lint Go
Lint YAML & Markdown
19s
Lint YAML & Markdown
Analyze FS with Trivy
10s
Analyze FS with Trivy
Analyze Release Image with Trivy
1m 10s
Analyze Release Image with Trivy
Matrix: Analyze with CodeQL
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 warning
Lint Go: internal/client/client_test.go#L1
Please run gofumpt. diff --git a/internal/client/client_test.go b/internal/client/client_test.go index 5538b42..f68bf5d 100644 --- a/internal/client/client_test.go +++ b/internal/client/client_test.go @@ -104,7 +104,7 @@ func TestGetCurrentTokenWithCLIOverrideWithoutSecretFile(t *testing.T) { tmpDir, err := os.MkdirTemp("", "") require.NoError(err) configPath := path.Join(tmpDir, "config.json") - err = os.WriteFile(configPath, []byte("{}"), 0600) + err = os.WriteFile(configPath, []byte("{}"), 0o600) require.NoError(err) configStore := &storage.JSONConfigStore{ConfigPath: tmpDir}
Lint Go
Process completed with exit code 1.
Lint Go
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Artifacts

Produced during runtime
Name Size
diff Expired
442 Bytes