Skip to content

Instantly share code, notes, and snippets.

@ldez
Last active April 24, 2021 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ldez/4bdcb334c1cf18f1d2c4b86463cb34b0 to your computer and use it in GitHub Desktop.
Save ldez/4bdcb334c1cf18f1d2c4b86463cb34b0 to your computer and use it in GitHub Desktop.
github.com/securego/gosec configuration
{
"G101": {
"pattern": "(?i)passwd|pass|password|pwd|secret|private_key|token",
"ignore_entropy": false,
"entropy_threshold": "80.0",
"per_char_threshold": "3.0",
"truncate": "32"
},
"G104": {
"io/ioutil": [
"WriteFile"
]
},
"G301": "0750",
"G302": "0600",
"G306": "0600"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment