Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore warning of the latest gosec tool #138

Merged
merged 1 commit into from Oct 18, 2021

Commits on Oct 18, 2021

  1. Ignore warning of the latest gosec tool

    This looks like a possible false positives, at least until we learn more at
    securego/gosec#714
    
    Addressing:
    [/github/workspace/examples/falcon_sensor_download/main.go:104-108] - G307 (CWE-703): Deferring unsafe method "Close" on type "*os.File" (Confidence: HIGH, Severity: MEDIUM)
        103: 	}
      > 104: 	defer func() {
      > 105: 		if err := file.Close(); err != nil {
      > 106: 			fmt.Fprintf(os.Stderr, "Error closing file: %s\n", err)
      > 107: 		}
      > 108: 	}()
        109:
    isimluk committed Oct 18, 2021
    Copy the full SHA
    fa27246 View commit details
    Browse the repository at this point in the history