From nobody Tue Oct 24 21:55:59 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SFQqM6qDJz4xZh9; Tue, 24 Oct 2023 21:55:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SFQqM6Ltrz3CbP; Tue, 24 Oct 2023 21:55:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698184559; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qoTsfS3zzrWRGruli4apJg92HuH5tGyt48MIJ2aAHXA=; b=O7jCgRHcDbJU0l9kP0ufIoFQD/T9lQ9Gm9wB+ec705I9TDpJUv4ZAUPOtUVs3VvU/ayBKd 5DXQKxqEOaAbpdr58cdkQuPc4JgThpV3OclvcCKlH1BhZrRG2IOAOE1XEbaZACB9Webj4F MtOJHKspXTLAUNfIgnIjvX4LDK+TFsdC+sey9NRvIuHV59/A8I18TBuVGk8L8o2aQ7c79e Q7xPsiUzNeYW4zNPeQcRxVD/cttvjSwViuaHeBTdC6nMBtxIqeaU/1sIS5BLXyqod4WgwM yoxB7QheqdAjcEM32NEIz8XBra56hLcl6/SJOWPjXpLmvH8/O6aNgObNq1XENw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698184559; a=rsa-sha256; cv=none; b=cE5tTninPA6cnNO0yadQxwOPmhises3+E1fV6LeXIFSFVWUD0n+8/tXHwdaA2t5vkejs2A JJ6Tagmtq9rDbT7KJnvCO5u2VhtPfk1mM92BBDYG05BGOLB0M18Ow/bb5oF3fCRODSFXe2 Harfhphp8JAszcNvWlAXw7wGULMmyJAXAP4/d1sJ/iRIm+qCwWkNXUdGeEayDYme7ZAqYP Q3fQrQ1wWEzCNNnwaXk+n5cy/xU2yeFMmHLJapdQyriXHtI0sqzzdTiA9dCZYMC1zMuZ9h J8gVNB/ktp1FjchcF4tN+X1LjxUQ1KM8AvxpYGp2Z2epUh75mZpD/aDEMmgJ8w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698184559; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qoTsfS3zzrWRGruli4apJg92HuH5tGyt48MIJ2aAHXA=; b=pH0ZWT1dZM6TQGjwMevn578mNQFN+xl+2b9ZQpdLipvMf+sU7IaX9BYMBywwRlckfv0Thv DdWGvigOSzX/zIVTIVcQ2HTZFU7+b2fr/QZyiTXEGZuGOX+fiaLFxceivzbD52/obL7oxM KThsKsaDPQ8h/Nd3ifwzeX9P2gZPWCud5pmAht+l8OHt1Yx5U/Hyfd1NGh9wEX8J8M/P/w sYk0G7BnrtdAc6xiEOv/mepMNRC+Um4scmaUNyXb5FdrSmYIwV46j8F0qTzkHu4qc4cr0t G5+mVf9asWUBVgG2Myn6Q1spZmO5OEBxosWC2bE30hOBs9TJUoXUs3xS7VELyw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SFQqM5HYSzfwc; Tue, 24 Oct 2023 21:55:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39OLtxV9024008; Tue, 24 Oct 2023 21:55:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39OLtxvA024005; Tue, 24 Oct 2023 21:55:59 GMT (envelope-from git) Date: Tue, 24 Oct 2023 21:55:59 GMT Message-Id: <202310242155.39OLtxvA024005@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: f54032e96c98 - main - security/gosec: New port: Go security checker List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f54032e96c98a9cf56d879003a52de4ecdd97d54 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=f54032e96c98a9cf56d879003a52de4ecdd97d54 commit f54032e96c98a9cf56d879003a52de4ecdd97d54 Author: Yuri Victorovich AuthorDate: 2023-10-24 14:41:29 +0000 Commit: Yuri Victorovich CommitDate: 2023-10-24 21:55:57 +0000 security/gosec: New port: Go security checker --- security/Makefile | 1 + security/gosec/Makefile | 20 ++++++++++++++++++++ security/gosec/distinfo | 5 +++++ security/gosec/pkg-descr | 2 ++ 4 files changed, 28 insertions(+) diff --git a/security/Makefile b/security/Makefile index 8d1b789f682b..5864a1775588 100644 --- a/security/Makefile +++ b/security/Makefile @@ -193,6 +193,7 @@ SUBDIR += gonepass SUBDIR += gopass SUBDIR += gorilla + SUBDIR += gosec SUBDIR += gost-engine SUBDIR += gostsum SUBDIR += gpa diff --git a/security/gosec/Makefile b/security/gosec/Makefile new file mode 100644 index 000000000000..07ec6a772107 --- /dev/null +++ b/security/gosec/Makefile @@ -0,0 +1,20 @@ +PORTNAME= gosec +DISTVERSIONPREFIX= v +DISTVERSION= 2.18.2 +CATEGORIES= security devel + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Go security checker +WWW= https://securego.io/ + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= go:modules + +GO_MODULE= github.com/securego/gosec/v2 +GO_TARGET= ./cmd/${PORTNAME} + +PLIST_FILES= bin/${PORTNAME} + +.include diff --git a/security/gosec/distinfo b/security/gosec/distinfo new file mode 100644 index 000000000000..0f2eaaab1960 --- /dev/null +++ b/security/gosec/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1698183964 +SHA256 (go/security_gosec/gosec-v2.18.2/v2.18.2.mod) = b5202ba610a5b5262dcbfbfd39db36e6816c187b343931b20b797a0174b6d1c9 +SIZE (go/security_gosec/gosec-v2.18.2/v2.18.2.mod) = 924 +SHA256 (go/security_gosec/gosec-v2.18.2/v2.18.2.zip) = fc1c75922220dcf00a16c6083111053fbc3a1a8e8544642b6f13a0c1f9b37b44 +SIZE (go/security_gosec/gosec-v2.18.2/v2.18.2.zip) = 201932 diff --git a/security/gosec/pkg-descr b/security/gosec/pkg-descr new file mode 100644 index 000000000000..a0efe57b66d1 --- /dev/null +++ b/security/gosec/pkg-descr @@ -0,0 +1,2 @@ +gosec is a Go security checker that inspects source code for security problems +by scanning the Go AST and SSA code representation.