Skip to content

ci: make scripts/ci.sh gosec match the workflow - #54

Open
timimsms wants to merge 1 commit into
mainfrom
fix/ci-script-gosec-parity
Open

timimsms wants to merge 1 commit into
mainfrom
fix/ci-script-gosec-parity

Conversation

@timimsms

Copy link
Copy Markdown
Owner

Summary

scripts/ci.sh says it runs gosec "with same config as CI". It does not:

workflow script (before)
version pinned v2.28.0 gosec@latest
severity filter none -severity medium

So a local run could pass on code CI rejects. That is not hypothetical — it happened on #53: a HIGH-severity G702 taint finding was invisible locally and failed in CI. (The severity filter alone would not have hidden a HIGH finding; the unpinned version is what did, since @latest and v2.28.0 disagree about which rules exist.)

This pins the same version and drops the filter, so a green local run means a green CI run.

Checklist

  • ./scripts/ci.sh passes locally — except errcheck, which reports the same pre-existing findings on main
  • Commit messages use conventional prefixes
  • CLI docs regenerated if command help text changed — n/a
  • Docs updated if user-facing behavior changed — n/a

The script claimed "same config as CI" while passing -severity medium and
installing gosec@latest. The workflow pins v2.28.0 and applies no severity
filter, so the local check could pass on code CI rejects — which is exactly what
happened on the extension-dispatch branch: a HIGH-severity G702 taint finding
was invisible locally and failed in CI.

Pins the same version and drops the severity filter.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aqbmccWm1tqttmBUCR5rv
ClickUp: 86dxbeqyt

This branch has not been deployed

No deployments
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