Skip to content

fix(scripts): CI lint for auditorpackgen#168

Merged
sergeyenin merged 1 commit into
mainfrom
fix/auditorpackgen-lint
Jun 3, 2026
Merged

fix(scripts): CI lint for auditorpackgen#168
sergeyenin merged 1 commit into
mainfrom
fix/auditorpackgen-lint

Conversation

@sergeyenin
Copy link
Copy Markdown
Contributor

@sergeyenin sergeyenin commented Jun 3, 2026

Summary

Fixes CI failure on main after #167 merge (golangci-lint + gofmt format check).

  • rangeValCopy: index loop over scenarios slice
  • gofumpt: manifest map alignment
  • gosec G306: manifest.json written with 0600 permissions

Test plan

  • golangci-lint run ./scripts/auditorpackgen/... — 0 issues
  • gofumpt -w applied

Note

Low Risk
Formatting and file-permission tweaks only; no change to evidence generation or signing logic.

Overview
Unblocks CI on scripts/auditorpackgen/main.go after lint/format failures on main.

The scenario loop now uses an index range (for i := range scenarios with scenarios[i]) instead of ranging by value, satisfying rangeValCopy. Manifest map literals were re-aligned for gofumpt. manifest.json is written with mode 0600 instead of 0644, matching other auditor-pack outputs and addressing gosec G306.

Reviewed by Cursor Bugbot for commit a389f35. Configure here.

Fix rangeValCopy (index loop), gofumpt alignment, and manifest
WriteFile mode 0600 so CI lint and format check pass on main.
@sergeyenin sergeyenin merged commit c8c808c into main Jun 3, 2026
@sergeyenin sergeyenin deleted the fix/auditorpackgen-lint branch June 3, 2026 13:35
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