Skip to content

Fix code scanning alert no. 9: Use of insecure HostKeyCallback implementation #93

Fix code scanning alert no. 9: Use of insecure HostKeyCallback implementation

Fix code scanning alert no. 9: Use of insecure HostKeyCallback implementation #93

Triggered via pull request November 20, 2024 06:46
Status Failure
Total duration 1m 53s
Artifacts

ci.yml

on: pull_request
CodeQL Analysis
1m 42s
CodeQL Analysis
Matrix: Build, Test, and Lint
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 3 warnings
Build, Test, and Lint (1.22.x, ubuntu-latest): pkg/ssh/ssh.go#L11
SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
Build, Test, and Lint (1.22.x, ubuntu-latest)
issues found
Build, Test, and Lint (stable, ubuntu-latest): pkg/ssh/ssh.go#L11
SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
Build, Test, and Lint (stable, ubuntu-latest)
issues found
Build, Test, and Lint (1.22.x, ubuntu-latest)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
CodeQL Analysis
The following actions use a deprecated Node.js version and will be forced to run on node20: github/codeql-action/init@v2, github/codeql-action/analyze@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
CodeQL Analysis
CodeQL Action v2 will be deprecated on December 5th, 2024. Please update all occurrences of the CodeQL Action in your workflow files to v3. For more information, see https://github.blog/changelog/2024-01-12-code-scanning-deprecation-of-codeql-action-v2/