Commit Graph

16 Commits

Author SHA256 Message Date
Jeff Kowalczyk
4a6b103660 Accepting request 1118368 from home:jfkw:branches:devel:languages:go
- Update to version 2.18.1:
  * chore(deps): update all dependencies
  * Update gosec to version 2.18.1 in the action
  * Update cosign version to v2.2.0
  * Refactor how ignored issues are tracked
  * Restrict the maximum depth when tracking the slice bounds
  * Handle empty ssa results
  * Handle gracefully any panic that occurs when building the SSA representation of a package
  * Fix typo
  * Handle new function when getting the call info in case is overriden
  * Bump golang.org/x/net from 0.16.0 to 0.17.0 (#1037)
  * Update to Go 1.21.3 and 1.20.10 (#1035)
  * Update the list of unsafe functions detected by the unsafe rule (#1033)

OBS-URL: https://build.opensuse.org/request/show/1118368
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/gosec?expand=0&rev=25
2023-10-17 20:28:40 +00:00
Jeff Kowalczyk
6a366dca8c Accepting request 1116472 from home:jfkw:branches:devel:languages:go
- Update to version 2.18.0:
  * Update the action to use gosec version v2.18.0 (#1029)
  * Use a step ID in github release action to get the digest of the image (#1028)
  * Update to go version 1.21.2 and 1.20.9 (#1027)
  * chore(deps): update all dependencies (#1026)
  * Enable gochecknoinits; fix lint issues; use consts for some vars (#1022)
  * Fix typos in struct fields, comments, and docs (#1023)
  * chore(deps): update all dependencies
  * Fix lint warning
  * Add a new rule which detects when a file is created with os.Create but the configured permissions are less than 0666
  * Fix lint warnings
  * Update ginkgo to latest version
  * Redesign and reimplement the slice out of bounds check using SSA code representation
  * docs: add reMarkable to users list
  * chore(deps): update all dependencies
  * Drop support for go 1.19.x since go team doesn't ship anymore security fixes for it
  * Update to latest go version
  * chore(deps): update all dependencies (#1011)
  * Fix hardcoded_credentials rule to only match on more specific patterns (#1009)
  * chore(deps): update all dependencies (#1008)
  * Exclude maps from slince bounce check rule (#1006)
  * Ignore struct pointers in G601 (#1003)
  * Update gosec image version to 2.17.0 in the Github action (#1002)
- Packaging improvements:
  * Use BuildRequires: golang(API) >= 1.20 instead of go >= 1.20.
    The go metapackage points to a single go version that
    increments at a date TBD after each go1.x major release. The
    expression golang(API) is available immediately upon each go1.x
    major release and is stable for expressing the minimum version
    or a temporarily pinned version.
  * Summary and Description clarify the purpose of this CLI tool
  * Use Group: Development/Languages/Go instead of Other
  * Drop BuildRequires: golang-packaging. The recommended Go
    toolchain dependency is BuildRequires: golang(API) >= 1.x or
    optionally the metapackage BuildRequires: go
  * Drop Requires: golang-packaging. The original macros for file
    movements into GOPATH are obsolete with Go modules. Macro
    go_nostrip is no longer needed with current binutils and Go.
  * Remove %%{go_nostrip} macro which is no longer recommended

OBS-URL: https://build.opensuse.org/request/show/1116472
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/gosec?expand=0&rev=23
2023-10-09 13:34:07 +00:00
Jeff Kowalczyk
cb31542fce Accepting request 1116406 from home:ph03nix
- Update to version 2.18.0:
  * Update the action to use gosec version v2.18.0 (#1029)
  * Use a step ID in github release action to get the digest of the image (#1028)
  * Update to go version 1.21.2 and 1.20.9 (#1027)
  * chore(deps): update all dependencies (#1026)
  * Enable gochecknoinits; fix lint issues; use consts for some vars (#1022)
  * Fix typos in struct fields, comments, and docs (#1023)
  * chore(deps): update all dependencies
  * Fix lint warning
  * Add a new rule which detects when a file is created with os.Create but the configured permissions are less than 0666
  * Fix lint warnings
  * Update ginkgo to latest version
  * Redesign and reimplement the slice out of bounds check using SSA code representation
  * docs: add reMarkable to users list
  * chore(deps): update all dependencies
  * Drop support for go 1.19.x since go team doesn't ship anymore security fixes for it
  * Update to latest go version
  * chore(deps): update all dependencies (#1011)
  * Fix hardcoded_credentials rule to only match on more specific patterns (#1009)
  * chore(deps): update all dependencies (#1008)
  * Exclude maps from slince bounce check rule (#1006)
  * Ignore struct pointers in G601 (#1003)
  * Update gosec image version to 2.17.0 in the Github action (#1002)

OBS-URL: https://build.opensuse.org/request/show/1116406
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/gosec?expand=0&rev=22
2023-10-09 13:09:06 +00:00
Jeff Kowalczyk
6247685edb Accepting request 1104395 from home:ph03nix
- Update to version 2.17.0:
  * Update cosign to version v2.1.1 (#1000)
  * Enable go 1.21.0 in the CI build (#998)
  * chore(deps): update all dependencies (#997)
  * Update to go version 1.20.7 and 1.19.12 (#993)
  * chore(deps): update all dependencies (#992)
  * chore(deps): update module github.com/onsi/gomega to v1.27.10 (#991)
  * fix: correctly identify infixed concats as potential SQL injections (#987)
  * chore(deps): update all dependencies (#989)
  * Add a new flag terse to show only the results and summary (#986)
  * Switch to a maintained fork of zxcvbn module (#984)

- Require go 1.20

OBS-URL: https://build.opensuse.org/request/show/1104395
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/gosec?expand=0&rev=20
2023-08-17 14:14:59 +00:00
Jeff Kowalczyk
826d609a07 Accepting request 1088575 from home:ph03nix
- Update to version 2.16.0
* Update cosign to latest version in release Github action
* chore(deps): update all dependencies
* Update go version in build and release scripts
* chore(deps): update all dependencies
* Update Go version to 1.20.3
* chore(deps): update all dependencies
* Fix for Dockerfile smell DL3059
* README: upgrade GitHub action in examples
* enable ginkgolinter linter
* chore(deps): update all dependencies
* correct gci linter
* remove deprecated linters
* increase timeout to 5m
* chore(deps): update all dependencies
* Use the latest version
* Fix some linting warnings
* Fix lint warning
* Bump the go versions and golanci
* chore(deps): update all dependencies
* Check nil pointer when variable is declared in a different file
* fix dead link to issue.go in README.md
* Remove rule G307 which checks when an error is not handled when a file or socket connection is closed
* Fix rule index reference into sarif report
* Bump golang.org/x/net from 0.6.0 to 0.7.0
* Format file
* Use the gosec issue in the go analysers
* Fix file formatting
* Update Go version in CI builds
* Fix method name in the comment
* Extract the issue in its own package
* Add support for Go analysis framework and SSA code representation
* chore(deps): update all dependencies
* Remove the version form ci github action
* Pin github action to latest release version 2.15.0
* Revert the image tag in github action until a working solution is found
* Fix version interpolation in github action image
* Add gosec version as an input parameter to GitHub action
* Update release build script

OBS-URL: https://build.opensuse.org/request/show/1088575
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/gosec?expand=0&rev=18
2023-05-23 15:11:06 +00:00
Jeff Kowalczyk
d85194afd4 Accepting request 1063437 from home:ph03nix
* Update to version 2.15.0
- Fix dependencies after renovate update
- chore(deps): update all dependencies (#922)
- Update to Go 1.20 and fix unit tests (#923)
- Update Go to latest version (#920)
- Update hardcoded_credentials.go fix: adaper equal expr which const value at left (#917)
- Fix github latest URL (#918)
- Fix github release url (#916)
- chore(deps): update module github.com/onsi/ginkgo/v2 to v2.7.0 (#914)
- Update Go version in CI script (#913)
- Track back when a file path was sanitized with filepath.Clean (#912)
- Fix the TLS config rule when parsing the settings from a variable (#911)
- Fix build after updating the dependencies (#910)
- chore(deps): update all dependencies (#909)
- Fix dependencies after renovate update (#907)
- chore(deps): update all dependencies (#906)
- Update slack badge and link (#905)
- Auto-detect TLS MinVersion integer base (#903)
- Adding s390x support (#902)
- chore(deps): update all dependencies (#904)
- chore(deps): update all dependencies (#898)
- Additional types for bad defer check (#897)
- chore(deps): update all dependencies (#894)
- chore(deps): update all dependencies (#892)
- Update Go version in CI scripts (#889)
- chore(deps): update all dependencies (#888)
- Allow to override build date with SOURCE_DATE_EPOCH (#887)
- chore(deps): update all dependencies (#886)
- chore(deps): update all dependencies (#884)
- fileperms: bitwise permission comparison (#883)

OBS-URL: https://build.opensuse.org/request/show/1063437
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/gosec?expand=0&rev=16
2023-02-06 16:13:51 +00:00
Jeff Kowalczyk
9a95cd3edd Accepting request 1043862 from home:jfkw:branches:devel:languages:go
- Switch OBS source service from tar_scm to obs_scm.
  * Embed version info with go build arg GIT_TAG="v%{version}"
  * _service obs_scm switch from tar_scm
  * _service obs_scm switch param revision (branch) to version (tag)
  * _service tar set to buildtime
  * _service recompress set to buildtime
  * _service recompress change tar compression from gz to xz

OBS-URL: https://build.opensuse.org/request/show/1043862
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/gosec?expand=0&rev=14
2022-12-20 07:32:00 +00:00
Jeff Kowalczyk
afd8f8285e Accepting request 1014614 from home:ph03nix
* Update to versin 2.14.0
- Pin release build to Go version 1.19.2 (#882)
- Refactor to support duplicate imports with different aliases (#865)
- chore(deps): update all dependencies (#881)
- go.mod: ginkgo/v2 v2.3.1, golang.org/x/text v0.3.8, update go versions (#880)
- Update Go version to 1.19 in the makefile (#876)
- chore(deps): update all dependencies (#875)
- Add CWE-676 to cwe mapping (#874)
- chore(deps): update all dependencies (#872)
- Add a way to use private repositories on GitHub (#869)
- chore(deps): update all dependencies (#868)
- Check go version when installing govulncheck
- Check go version when running govulncheck
- Add vulncheck to the test steps
- chore(deps): update all dependencies
- Fix false positives for G404 with aliased packages
- chore(deps): update all dependencies
- chore(deps): update all dependencies
- fix: add a CWE ID mapping to rule G114
- chore(deps): update golang.org/x/crypto digest to bc19a97

OBS-URL: https://build.opensuse.org/request/show/1014614
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/gosec?expand=0&rev=12
2022-10-17 14:17:43 +00:00
Jeff Kowalczyk
64101d2629 Accepting request 998624 from home:ph03nix
Update to version 2.13.1

OBS-URL: https://build.opensuse.org/request/show/998624
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/gosec?expand=0&rev=10
2022-08-22 16:37:08 +00:00
Jeff Kowalczyk
aec1c2704e Accepting request 984075 from home:jfkw:branches:devel:languages:go
- Enable _service tar_scm changelog automation
- Commit _servicedata to support tar_scm changelog automation
- Update to version 2.12.0:

OBS-URL: https://build.opensuse.org/request/show/984075
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/gosec?expand=0&rev=8
2022-06-21 22:37:53 +00:00
Jeff Kowalczyk
ff94bdca60 Accepting request 982726 from home:ph03nix
Update to version 2.12.0

OBS-URL: https://build.opensuse.org/request/show/982726
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/gosec?expand=0&rev=7
2022-06-15 15:15:16 +00:00
Jeff Kowalczyk
d26a470ef6 Accepting request 974534 from home:ph03nix
* Use build-linux target on x86_64 to include git tag and version (for `gosec -version`)
* Add additional build check

OBS-URL: https://build.opensuse.org/request/show/974534
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/gosec?expand=0&rev=5
2022-05-04 15:16:25 +00:00
Jeff Kowalczyk
66481f311e Accepting request 963855 from home:ph03nix
Update to v2.11.0

OBS-URL: https://build.opensuse.org/request/show/963855
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/gosec?expand=0&rev=4
2022-03-23 07:30:13 +00:00
Jeff Kowalczyk
990659287e Accepting request 958397 from home:ph03nix
Update to v2.10.0

OBS-URL: https://build.opensuse.org/request/show/958397
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/gosec?expand=0&rev=3
2022-03-02 16:23:29 +00:00
Dominique Leuenberger
0d295e37d7 Accepting request 950920 from devel:languages:go
Add gosec package to Tumbleweed

OBS-URL: https://build.opensuse.org/request/show/950920
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gosec?expand=0&rev=1
2022-02-07 22:37:55 +00:00
Jeff Kowalczyk
05290390fe Accepting request 947871 from home:ph03nix
Add gosec package (includes new released version)

OBS-URL: https://build.opensuse.org/request/show/947871
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/gosec?expand=0&rev=1
2022-02-01 21:12:11 +00:00