Skip to content

Add govulncheck to CI#55

Closed
AviadHayumi wants to merge 3 commits into
mainfrom
AviadHayumi/ci-lint-test
Closed

Add govulncheck to CI#55
AviadHayumi wants to merge 3 commits into
mainfrom
AviadHayumi/ci-lint-test

Conversation

@AviadHayumi

@AviadHayumi AviadHayumi commented May 3, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds govulncheck to CI so vulnerable dependencies fail the build, plus two small drive-bys:

  • concurrency.cancel-in-progress — superseded PR commits stop running.
  • Go version sourced from go.mod (go-version-file) instead of the hard-coded 1.25.7, which had drifted behind go.mod's 1.25.9.

make check already covered lint + test. New make govulncheck target installs golang.org/x/vuln/cmd/govulncheck into bin/ and scans ./..., mirroring the existing tool-bootstrap pattern.

Related issue(s)

Fixes #

Checklist

  • All commits are signed off with DCO (git commit -s)
  • New/modified files have SPDX license and copyright headers
  • Documentation updated (if applicable)
  • Tests pass (make check)
  • No proprietary or internal information included

Restructures the single-job CI into parallel lint/validate/test/helm/actionlint
jobs with a CI Summary aggregator suitable for branch-protection. Adds race
detector + coverage on test, Codecov upload, concurrency cancel-in-progress,
and pulls Go version from go.mod.

Also adds:
- govulncheck nightly + on go.mod change
- dependency-review on PRs
- OSSF Scorecard weekly
- CodeQL on PRs and weekly
- govulncheck and test-cover make targets
- Friendlier error message when generated files drift

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: aviadh <aviad.hayumi@gmail.com>
@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.

AviadHayumi and others added 2 commits May 3, 2026 12:23
Fixes two SC2086 findings surfaced by actionlint+shellcheck on the new CI.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

Signed-off-by: aviadh <aviad.hayumi@gmail.com>
Drop the parallel-job split, codeql, scorecard, dependency-review and
separate govulncheck workflow. Karta is a Go library + helm chart, so
keep CI to one job. Net change vs main: govulncheck step + concurrency
cancel-in-progress + sourcing Go version from go.mod.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: aviadh <aviad.hayumi@gmail.com>
@AviadHayumi AviadHayumi changed the title Harden CI: parallel jobs, race+coverage, govulncheck, scorecard, codeql, actionlint Add govulncheck to CI May 3, 2026
@AviadHayumi AviadHayumi closed this May 3, 2026
@yuval-gr yuval-gr deleted the AviadHayumi/ci-lint-test branch May 17, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants