gosec: record why six rule classes stay excluded #633

Open
opened 2026-09-24 19:39:16 +00:00 by hexajon · 0 comments
Owner

What

scripts/gosec.sh excludes six rule classes: G204, G301, G302, G304, G306, and G704. The reasons live only in the script header, with no decision record.

With the error handling from #623 in place, gosec reports these hits in the six classes: G204 15, G301 8, G302 3, G304 46, G306 12, and G704 2.

Fix

  • A decision record in docs/decisions for the six classes: for each class, every current site and why it is safe.
  • The scripts/gosec.sh header points at the record.

Acceptance

  • The record exists and lists every site of each class with its reason.
  • The scripts/gosec.sh header points at the record.
  • adr check passes.
## What `scripts/gosec.sh` excludes six rule classes: G204, G301, G302, G304, G306, and G704. The reasons live only in the script header, with no decision record. With the error handling from #623 in place, gosec reports these hits in the six classes: G204 15, G301 8, G302 3, G304 46, G306 12, and G704 2. ## Fix - A decision record in `docs/decisions` for the six classes: for each class, every current site and why it is safe. - The `scripts/gosec.sh` header points at the record. ## Acceptance - The record exists and lists every site of each class with its reason. - The `scripts/gosec.sh` header points at the record. - `adr check` passes.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Blocks Depends on
Reference
sixfold-space/madtea#633
No description provided.