Skip to content

feat: status command #1481

feat: status command

feat: status command #1481

Triggered via pull request September 19, 2024 19:51
Status Failure
Total duration 31s
Artifacts

linters.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 2 warnings
golangci: sztp-agent/pkg/secureagent/status.go#L138
Error return value of `file.Close` is not checked (errcheck)
golangci: sztp-agent/pkg/secureagent/status.go#L156
Error return value of `file.Close` is not checked (errcheck)
golangci: sztp-agent/pkg/secureagent/status.go#L193
Error return value of `file.Close` is not checked (errcheck)
golangci: sztp-agent/pkg/secureagent/status.go#L211
Error return value of `os.Remove` is not checked (errcheck)
golangci: sztp-agent/pkg/secureagent/status.go#L170
G301: Expect directory permissions to be 0750 or less (gosec)
golangci: sztp-agent/pkg/secureagent/status.go#L189
G304: Potential file inclusion via variable (gosec)
golangci: sztp-agent/pkg/secureagent/status.go#L178
exported: comment on exported function EnsureFileExists should be of the form "EnsureFileExists ..." (revive)
golangci
issues found
golangci
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
golangci
Restore cache failed: Dependencies file is not found in /home/runner/work/sztp/sztp. Supported file pattern: go.sum