Skip to content

Fix providers' unit test. #31

Fix providers' unit test.

Fix providers' unit test. #31

Triggered via push May 27, 2024 15:58
Status Failure
Total duration 56s
Artifacts

static-scan.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 4 warnings
Lint: pkg/utils/utils.go#L519
Error return value of `json.Unmarshal` is not checked (errcheck)
Lint: pkg/providers/intel.go#L88
G306: Expect WriteFile permissions to be 0600 or less (gosec)
Lint: pkg/providers/intel.go#L107
G306: Expect WriteFile permissions to be 0600 or less (gosec)
Lint: pkg/providers/intel.go#L124
G306: Expect WriteFile permissions to be 0600 or less (gosec)
Lint: pkg/providers/providers_test.go#L15
G204: Subprocess launched with a potential tainted input or cmd arguments (gosec)
Lint: pkg/providers/providers_test.go#L23
G204: Subprocess launched with a potential tainted input or cmd arguments (gosec)
Lint: pkg/providers/mellanox.go#L37
if-return: redundant if ...; err != nil check, just return error instead. (revive)
Lint: pkg/providers/mellanox.go#L46
if-return: redundant if ...; err != nil check, just return error instead. (revive)
Lint: pkg/providers/intel.go#L44
if-return: redundant if ...; err != nil check, just return error instead. (revive)
Lint: pkg/utils/utils.go#L36
var `execCommand` is unused (unused)
Shellcheck
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Hadolint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v4, actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Lint
Restore cache failed: Dependencies file is not found in /home/runner/work/sriov-cni/sriov-cni. Supported file pattern: go.sum