Skip to content

ci: overhaul pipeline with security scanning, SBOM, CodeQL, and build…#17

Merged
IceTweak merged 5 commits into
masterfrom
feat/improve-ci
May 13, 2026
Merged

ci: overhaul pipeline with security scanning, SBOM, CodeQL, and build…#17
IceTweak merged 5 commits into
masterfrom
feat/improve-ci

Conversation

@IceTweak
Copy link
Copy Markdown
Owner

… 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

IceTweak added 2 commits May 13, 2026 12:59
… 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
@IceTweak IceTweak added enhancement New feature or request dependencies Pull requests that update a dependency file labels May 13, 2026
@github-advanced-security
Copy link
Copy Markdown

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:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

IceTweak added 3 commits May 13, 2026 14:22
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.
@IceTweak IceTweak merged commit 95b7b80 into master May 13, 2026
15 checks passed
@IceTweak IceTweak deleted the feat/improve-ci branch May 13, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants