ci: overhaul pipeline with security scanning, SBOM, CodeQL, and build…#17
Merged
Conversation
… gate - Rename workflow to 'CI Pipeline' for consistency - Trigger on push/PR to all branches instead of master only - Add GO_VERSION env var as single source of truth for default Go version - Replace manual actions/cache@v5 with setup-go@v5 built-in cache (cache: true) - Add security-scan job with govulncheck (Go vulnerability scanner) and gosec (static analysis), both producing SARIF output uploaded to GitHub Security tab - Add codeql-analysis job with security-and-quality query suite - Add sbom job generating SBOM in 3 formats (SPDX, CycloneDX, Syft) via anchore/sbom-action, plus Grype directory vulnerability scan with SARIF upload - Add build gate job that depends on all prior jobs (test, lint, verify, security-scan, codeql-analysis, sbom) and runs go build ./... - Update golangci-lint with install-mode: goinstall and --timeout=5m - Align action versions with CI pipeline best practices
- Promote direct test/chaincode dependencies from indirect to direct - Remove unused indirect dependencies (josharian/intern, mailru/easyjson) - Add missing indirect dependency (kr/pretty) - Bump transitive dependency versions to resolved minima
|
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. |
install-mode: goinstall installs HEAD from go install, which may be a pre-release version with breaking config schema changes. Removing it defaults to the binary installer (latest stable release), matching the existing .golangci.yml v2 config format.
version: latest resolves to golangci-lint v1.64.x (v1 line), but the .golangci.yml is written for the v2.x config format (version: '2'). Pin to v2.10.0 to match the Makefile and config schema.
golangci-lint-action v6 does not support golangci-lint v2.x. Must use v7 to use version v2.10.0 with the .golangci.yml v2 config format.
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.
… gate