From nobody Sat Apr 23 07:49:23 2022 X-Original-To: dev-commits-ports-main@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 8F055199F324; Sat, 23 Apr 2022 07:49:24 +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 4Klk1w04B2z3PBh; Sat, 23 Apr 2022 07:49:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650700164; 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=rKRLOE+StHqKy9QVD+yB8x1w2B36HbOC7+DmEQh7N0I=; b=MJkTDosniBPHSLHyfrnS5+MXiIjSd68cnAvW7gs8gr3LCxOTretrgb9NTh1M0iOPNioM1y L+gEwUkJrZPsjrsNDoVMYZhffO/IjbrN8stNvmVXxngIkJWqK/wT1Oi4R0HB4wY/jBZxwa 3qkDypt4BD7y9f0ohChP0Kf0UMijkC4OVwq7F44YgAfWNKbzCtQ+dDhQfLC07g223ZhGZv IU9+vszBJ5Vw/+6giLbxf1ziXhj7KHVaue8qnigXXMmSav38hLugYIrR70sTrmcsP35hNE AX+l+4YBMbnekYrazwE7F2L4SPfyJykZpibc32iqd4rS2i04IMnKZR8SAi1IGg== 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 B579D5C36; Sat, 23 Apr 2022 07:49:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23N7nNIM010182; Sat, 23 Apr 2022 07:49:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23N7nND6010181; Sat, 23 Apr 2022 07:49:23 GMT (envelope-from git) Date: Sat, 23 Apr 2022 07:49:23 GMT Message-Id: <202204230749.23N7nND6010181@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Tobias Kortkamp Subject: git: d00e32651ac5 - main - Uses/cargo: Add cargo-audit maintainer target List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tobik X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d00e32651ac5da85b4653861c138b8a1573684dd Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650700164; 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=rKRLOE+StHqKy9QVD+yB8x1w2B36HbOC7+DmEQh7N0I=; b=BSxzE+9klszSiLFDBXmKabIfB9YOyEmh3UlRrQ8FTaAbksJlDn7jLI2yCqvbYt+mO3u/xm x/NL8eeSzuMTZzzH/CuyEiv5MmiBTxC0YxdB1Gr6tRZT/nfsB8y6btCYiyxJeETs/AuKNT SZLh/WMjS/IoLf6tJL/WQ0BGwp2JK81JKuBJkqZH+STepz/hV2YnJiRg5VE0O3PTDsFlzT i2SnBqgUeShhYgfp+3Ep6iaUv70DCdpCFt/yVtj9PtVZ3NOKEL3KhMdXvU4im9ficJUSbh xLqjqT8MoyztJrYcErXC6HRRxeIoqNr/8lNGvZxhfPLa88WecooKFBUj69f4QA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650700164; a=rsa-sha256; cv=none; b=FuT2/wQqOh5qHXJ4vc5QMRvz+poUhc9Qe55HRynN/gUIfquO1mfY5f36VhD9nUtsafpIxD X/d71otMLMnZDkE2R3O9/ie3dGsDyi3NlFhBEGHkHQtrcHqjHFVswTGRAbxP/6gXp3Taa3 bowFS8480IHPgG0SpivzKdqOY1vQ9CF5DrP1sQaaAfAeXKWJ3gwHyTyCPU1OsWQ7+qQrcZ EHLOeGCtRIQGT9D1RIkKoAQs0qC3yV+Bh16OM5sIzWAEZ2soYKpD8nQi0jNBMUAiLB1YUV zRzsKOygUyojSMSUx0Vec5VjX7enYo0eyAIeuGiiENa7cKDppM/SPaLDGCDiiw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tobik: URL: https://cgit.FreeBSD.org/ports/commit/?id=d00e32651ac5da85b4653861c138b8a1573684dd commit d00e32651ac5da85b4653861c138b8a1573684dd Author: Tobias Kortkamp AuthorDate: 2022-04-15 11:51:18 +0000 Commit: Tobias Kortkamp CommitDate: 2022-04-23 07:39:21 +0000 Uses/cargo: Add cargo-audit maintainer target It wraps security/cargo-audit and generates a report about vulnerable crates. Many ports have those. Based on D17448. --- Mk/Uses/cargo.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Mk/Uses/cargo.mk b/Mk/Uses/cargo.mk index f73ab923cff8..0e31eef26778 100644 --- a/Mk/Uses/cargo.mk +++ b/Mk/Uses/cargo.mk @@ -354,6 +354,15 @@ do-test: # Helper targets for port maintainers # +# cargo-audit generates a vulnerability report using +# security/cargo-audit based on the crates in Cargo.lock. +cargo-audit: configure + @if ! type cargo-audit > /dev/null 2>&1; then \ + ${ECHO_MSG} "===> Please install \"security/cargo-audit\""; exit 1; \ + fi + @${ECHO_MSG} "===> Checking for vulnerable crates" + @${CARGO} audit --file ${CARGO_CARGOLOCK} + # cargo-crates will output the crates list from Cargo.lock. If there # is no Cargo.lock for some reason, try and generate it first. cargo-crates: cargo-crates-generate-lockfile