gosec/gosec.spec
Jeff Kowalczyk 4ee4354470 - Update to version 2.22.0:
* Update what message for G104 (#1282)
  * chore(deps): update module github.com/onsi/ginkgo/v2 to v2.22.2 (#1281)
  * chore(deps): update all dependencies (#1280)
  * chore(deps): update all dependencies (#1279)
  * Simplify sortIssues implementation (#1277)
  * Enable testifylint and fix up lint issues (#1276)
  * Refactor AppendError to check for build.NoGoError (#1273)
  * chore(deps): update module golang.org/x/net to v0.33.0 [security] (#1275)
  * Update README.md (#1274)
  * Rule documentation updates (#1272)
  * Replace old golang.org links with new go.dev (#1271)
  * Refactor AppendError to use strings.Contains (#1270)
  * Simplify Analyzer.ignore by reducing nesting (#1269)
  * Improve capitalization in AI API flags descriptions (#1267)
  * Remove unused golint dependency (#1266)
  * Simplify tests by using GinkgoT().TempDir() (#1265)
  * Documentation on adding new rules and analyzers (#1262)
  * chore(deps): update all dependencies (#1268)
  * Update to go 1.22.10 and 1.23.4 versions (#1264)
  * chore(deps): update module golang.org/x/crypto to v0.31.0 [security] (#1263)
  * chore(deps): update all dependencies (#1261)
  * chore(deps): update module github.com/onsi/gomega to v1.36.0 (#1259)
  * fix: revive.redefines-builtin-id lint warnings (#1257)
  * Fix typos in comments and fields
  * Remove the decryption funtions/methods from G407 check
  * Upate go to version 1.23.3 and 1.22.9
  * Fix G115 false positive when going from parsed uint to larger int
  * chore(deps): update all dependencies
  * chore(deps): update all dependencies

OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/gosec?expand=0&rev=39
2025-01-09 14:20:49 +00:00

62 lines
1.8 KiB
RPMSpec

#
# spec file for package gosec
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: gosec
Version: 2.22.0
Release: 0
Summary: CLI tool to scan the Go AST and SSA code representations for security problems
License: Apache-2.0
Group: Development/Languages/Go
URL: https://github.com/securego/gosec
Source: gosec-%{version}.tar.xz
Source1: vendor.tar.gz
BuildRequires: golang(API) >= 1.20
%description
CLI tool to inspect Go source code for security problems by scanning the
abstract syntax tree (AST) and static single-assignment (SSA) code
representations.
%prep
%autosetup -D -a 1
%build
# Native linux build includes version tags but currently works only on x86_64
%ifarch x86_64
GOFLAGS="-buildmode=pie" GIT_TAG="v%{version}" make build-linux
%else
GOFLAGS="-buildmode=pie" GIT_TAG="v%{version}" make build
%endif
%check
# check if binary is working
./gosec --version
make sec
# Not yet working because it wants to pull the latest ginkgo version from GitHub
#make test
%install
install -Dm 755 gosec %{buildroot}/%{_bindir}/gosec
%files
%license LICENSE.txt
%doc README.md
%{_bindir}/gosec
%changelog