Fix CLI usage with no pre-set context/config #910
lint.yaml
on: pull_request
Lint Go
21s
Lint YAML & Markdown
19s
Analyze FS with Trivy
10s
Analyze Release Image with Trivy
1m 10s
Matrix: Analyze with CodeQL
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 |
|