Skip to content

gosec: latest version (v2.17.0) returning false positives #4037

Closed
@Smelton01

Description

@Smelton01

Welcome

Description of the problem

The latest release v1.54.2 of golangci-lint includes an updated version of of gosec v2.17.0 with changes which introduced a number of false positives.

The changes in question were introduced in the following PRs:

Since this is a very popular linter trusted by many, a release should be made reverting the linter to a stable version until the above issues are addressed.

Version of golangci-lint

$ golangci-lint --version
golangci-lint has version 1.54.2 built with go1.21.0 from 411e0bb on 2023-08-21T11:04:00Z

Configuration

default-config

Go environment

$ go version 
go version go1.21.0 darwin/arm64

Verbose output of running

$ golangci-lint cache clean
$ golangci-lint run -v
...G101: Potential hardcoded credentials (gosec)
        SQSQueueURL  = "workertest-sqs-queue-url"

A minimal reproducible example or link to a public repository

// add your code here

Validation

  • Yes, I've included all information above (version, config, etc.).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdependenciesRelates to an upstream dependency

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions