Files
danj 9b458a22ba Update to gosec-2.27.1
From Laurent Cheylus (maintainer)
2026-06-06 10:17:33 +00:00

51 lines
2.1 KiB
Makefile

COMMENT = security checker for Go projects
MODGO_MODNAME = github.com/securego/gosec/v2
MODGO_VERSION = v2.27.1
DISTNAME = gosec-${MODGO_VERSION}
# https://github.com/securego/gosec
HOMEPAGE = https://securego.io/
CATEGORIES = security devel
MAINTAINER = Laurent Cheylus <foxy@free.fr>
# Apache 2.0
PERMIT_PACKAGE = Yes
WANTLIB += c pthread
MODULES = lang/go
MODGO_LDFLAGS = -X main.Version=${MODGO_VERSION:S/v//}
# === RUN TestRules
# Running Suite: Rules Suite
# Summarizing 9 Failures:
# FAIL! -- 39 Passed | 9 Failed | 0 Pending | 0 Skipped
# [FAIL] gosec rules report correct errors for all samples [It] should detect of ssh.InsecureIgnoreHostKey function
# github.com/securego/gosec/v2/rules/rules_test.go:41
# [FAIL] gosec rules report correct errors for all samples [It] should detect exported struct fields that may contain secrets and are JSON serializable
# github.com/securego/gosec/v2/rules/rules_test.go:41
# [FAIL] gosec rules report correct errors for all samples [It] should detect sql injection via format strings
# github.com/securego/gosec/v2/rules/rules_test.go:41
# [FAIL] gosec rules report correct errors for all samples [It] should detect sql injection via string concatenation
# github.com/securego/gosec/v2/rules/rules_test.go:41
# [FAIL] gosec rules report correct errors for all samples [It] should detect command execution
# github.com/securego/gosec/v2/rules/rules_test.go:41
# [FAIL] gosec rules report correct errors for all samples [It] should detect weak crypto algorithms
# github.com/securego/gosec/v2/rules/rules_test.go:41
# [FAIL] gosec rules report correct errors for all samples [It] should detect weak crypto algorithms
# github.com/securego/gosec/v2/rules/rules_test.go:41
# [FAIL] gosec rules report correct errors for all samples [It] should detect blocklisted imports - MD4
# github.com/securego/gosec/v2/rules/rules_test.go:41
# [FAIL] gosec rules report correct errors for all samples [It] should detect blocklisted imports - RIPEMD160
# github.com/securego/gosec/v2/rules/rules_test.go:41
TEST_TARGET = ./...
.include "modules.inc"
.include <bsd.port.mk>