mirror of
https://github.com/securego/gosec.git
synced 2026-01-15 01:33:41 +08:00
Refactor how ignored issues are tracked
Track ignored issues using file location instead of a AST node. There are issues linked to a different AST node than the original node used to start the scan. Signed-off-by: Cosmin Cojocar <gcojocar@adobe.com>
This commit is contained in:
committed by
Cosmin Cojocar
parent
f338a98bf3
commit
0ec6cd95d7
@@ -187,7 +187,7 @@ func main() {
|
||||
}
|
||||
|
||||
outputPath := filepath.Join(dir, *outputFile)
|
||||
if err := os.WriteFile(outputPath, src, 0o644); err != nil {
|
||||
if err := os.WriteFile(outputPath, src, 0o644); err != nil /*#nosec G306*/ {
|
||||
log.Fatalf("Writing output: %s", err)
|
||||
} //#nosec G306
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user