Skip to content

🔒 fix: clear GO-2026-5320/5158 vulns and e2e.yaml permission finding - #37

Merged
konih merged 3 commits into
mainfrom
harden-vuln-perms-030
Jul 31, 2026
Merged

🔒 fix: clear GO-2026-5320/5158 vulns and e2e.yaml permission finding#37
konih merged 3 commits into
mainfrom
harden-vuln-perms-030

Conversation

@konih

@konih konih commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Pre-v0.3.0 hardening: clears the two open govulncheck/Scorecard vulnerability findings and the one actionable OpenSSF workflow-token finding. Scoped deliberately to changes that make sense and don't alter behavior.

Vulnerabilities (both unreachable transitive deps — govulncheck reports 0 called vulns before and after)

  • GO-2026-5320 — XSS in github.com/yuin/goldmark → bumped v1.4.13v1.7.17
  • GO-2026-5158 — baggage parsing in go.opentelemetry.io/otel → bumped v1.43.0v1.44.0 (with otel/trace, otel/metric aligned)

govulncheck ./... now reports 0 vulnerabilities. make generate produces no CRD/docs drift from the goldmark parser jump.

OpenSSF / Scorecard token-permissions

  • Added workflow-level permissions: contents: read floor to .github/workflows/e2e.yaml (was the only workflow lacking a top-level block). All three jobs already declare their own permissions, so the floor strips nothing and matches the other workflows.
  • Left as-is (removing would break jobs, per operator guidance): job-level contents: write on backport/changelog/tag, statuses: write on e2e, packages: write on publish — all required by those jobs.

Verification

  • go build ./...
  • go test ./...
  • govulncheck ./... ✅ 0 vulnerabilities
  • make generate ✅ no drift
  • e2e.yaml valid YAML ✅

Context

Groundwork for the v0.3.0 release (E8 data-sources epic). The existing lightweight v0.3.0 tag is stale/incomplete and will be re-cut as a signed annotated tag at main HEAD after this lands (operator-gated).

konih added 3 commits July 31, 2026 15:54
Clears the two Scorecard/govulncheck module-graph findings (both unreachable
transitive deps, not in any called path):
- GO-2026-5320 XSS in github.com/yuin/goldmark v1.4.13 -> v1.7.17
- GO-2026-5158 baggage parsing in go.opentelemetry.io/otel v1.43.0 -> v1.44.0

govulncheck now reports 0 vulnerabilities. No generated CRD drift from the
goldmark parser bump (make generate is a no-op).
Clears Scorecard 'no topLevel permission defined' on e2e.yaml. All three jobs
already declare their own permissions, so the top-level contents: read floor
strips nothing; it brings e2e.yaml in line with the other workflows.
@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Jul 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@konih
konih merged commit 3ddf428 into main Jul 31, 2026
16 checks passed
@konih
konih deleted the harden-vuln-perms-030 branch July 31, 2026 14:03
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.

1 participant