feat: add code-scanning workflow with golangci-lint and govulncheck#40
Merged
Conversation
Agent-Logs-Url: https://github.com/maansaake/locksmith/sessions/cab7cd0c-23c5-4406-9bc5-efdac08a26ae Co-authored-by: maansaake <15028979+maansaake@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
maansaake
May 3, 2026 12:10
View session
maansaake
requested changes
May 3, 2026
Agent-Logs-Url: https://github.com/maansaake/locksmith/sessions/c980782a-58b4-48ee-a368-2e52319f40bb Co-authored-by: maansaake <15028979+maansaake@users.noreply.github.com>
Contributor
Author
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
maansaake
requested changes
May 3, 2026
Agent-Logs-Url: https://github.com/maansaake/locksmith/sessions/566d056a-adfe-44fc-a240-647fb39c2cf6 Co-authored-by: maansaake <15028979+maansaake@users.noreply.github.com>
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a GitHub Advanced Security code-scanning workflow running
golangci-lintandgovulncheck, each uploading SARIF results viacodeql-action/upload-sarif.Changes
tools/go.modtooldirective to pingolang.org/x/vuln/cmd/govulncheckwithout polluting the root moduleMakefilegovulnchecktarget invoking the tool via the separate modfile:govulncheck: go tool -modfile tools/go.mod govulncheck ./....github/workflows/code-scanning.ymlmain:golangci-lint— runs viagolangci-lint-action@1e7e51e7 # v9.2.0with explicitversion: v2.12.1and--output-formats=sarif:golangci-lint.sarifgovulncheck— runsgo tool -modfile tools/go.mod govulncheck -format sarif ./...github/codeql-action/upload-sarif@e46ed2cb # v4.35.3withif: always()to surface findings even on non-zero exit.github/dependabot.ymlgomodentry fortools/so Dependabot keepsgovulncheckcurrent