aboutsummaryrefslogtreecommitdiffstats
path: root/simulation/config
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-01-18 19:10:55 +0800
committerGitHub <noreply@github.com>2019-01-18 19:10:55 +0800
commit632fa7914a2e6dbf1812581e0e769c93189771ca (patch)
treee8b415b01de87a6457a65ba191dc90f3ab8565e0 /simulation/config
parent9ff8f0cdc45a7b294ae71a28e7e205bb67e559cb (diff)
downloaddexon-consensus-632fa7914a2e6dbf1812581e0e769c93189771ca.tar
dexon-consensus-632fa7914a2e6dbf1812581e0e769c93189771ca.tar.gz
dexon-consensus-632fa7914a2e6dbf1812581e0e769c93189771ca.tar.bz2
dexon-consensus-632fa7914a2e6dbf1812581e0e769c93189771ca.tar.lz
dexon-consensus-632fa7914a2e6dbf1812581e0e769c93189771ca.tar.xz
dexon-consensus-632fa7914a2e6dbf1812581e0e769c93189771ca.tar.zst
dexon-consensus-632fa7914a2e6dbf1812581e0e769c93189771ca.zip
misc: Add gosec to check security issues (#424)
* Add gosec to tools * Run security check to ci * Fix secrity issues
Diffstat (limited to 'simulation/config')
-rw-r--r--simulation/config/config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/simulation/config/config.go b/simulation/config/config.go
index 482f9cd..428b128 100644
--- a/simulation/config/config.go
+++ b/simulation/config/config.go
@@ -157,7 +157,7 @@ func GenerateDefault(path string) error {
// Read reads the config from a file.
func Read(path string) (*Config, error) {
- f, err := os.Open(path)
+ f, err := os.Open(path) // #nosec G304
if err != nil {
return nil, err
}