Skip to content

Use gosec suppression syntax for mise commands - #333

Merged
robzolkos merged 1 commit into
mainfrom
fix-mise-gosec
Aug 25, 2026
Merged

Use gosec suppression syntax for mise commands#333
robzolkos merged 1 commit into
mainfrom
fix-mise-gosec

Conversation

@robzolkos

Copy link
Copy Markdown
Collaborator

The main-branch security workflow runs gosec directly, so the mise command exemptions need gosec’s #nosec G204 syntax rather than golangci-lint’s nolint syntax. This keeps the existing narrowly scoped exemptions and lets the release security gate recognize them.

Validation:

  • GOWORK=off make gosec — 0 issues
  • GOWORK=off make lint — 0 issues
  • GOWORK=off go test ./internal/cmd -run 'TestMise|TestUpgrade' -count=1 \u2014 passed

Copilot AI balanced review requested due to automatic review settings August 25, 2026 23:40
@robzolkos
robzolkos requested a review from a team as a code owner August 25, 2026 23:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates mise command exemptions so the direct gosec release gate recognizes the narrowly scoped G204 suppressions.

Changes:

  • Replaces nolint:gosec with #nosec G204 for mise resolution and upgrade commands.
  • Preserves existing security justifications and runtime behavior.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@robzolkos
robzolkos merged commit a8071fb into main Aug 25, 2026
34 checks passed
@robzolkos
robzolkos deleted the fix-mise-gosec branch August 25, 2026 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants