Files
codeql/go/ql/test/query-tests/Security/CWE-312/protobuf.go
Owen Mansel-Chan 8a3bd8408b Fix test expectations for Cleartext Logging
One spurious alert was removed, one missing alert was added, and some
source locations changed.
2025-10-01 16:12:52 +01:00

17 lines
262 B
Go

package main
import (
"log"
"main/protos/query"
)
func testProtobuf() {
password := "P@ssw0rd" // $ Source
query := &query.Query{}
query.Description = password
log.Println(query.GetDescription()) // $ Alert
log.Println(query.GetId()) // OK
}