Open
Description
Solve following issues detected by Sobelow:
$ mix sobelow
WARNING: Sobelow cannot find the router. If this is a Phoenix application
please use the `--router` flag to specify the router's location.
##############################################
# #
# Running Sobelow - v0.10.4 #
# Created by Griffin Byatt - @griffinbyatt #
# NCC Group - https://nccgroup.trust #
# #
##############################################
Config.HTTPS: HTTPS Not Enabled - High Confidence
-----------------------------------------------
Traversal.FileModule: Directory Traversal in `File.open` - Low Confidence
File: lib/git_pair/actions.ex
Line: 58
Function: _modify_commit_msg:55
Variable: path
-----------------------------------------------
Traversal.FileModule: Directory Traversal in `File.mkdir_p!` - Low Confidence
File: lib/git_pair/actions.ex
Line: 18
Function: init:17
Variable: Elixir.Path
-----------------------------------------------
DOS.StringToAtom: Unsafe `String.to_atom` - Low Confidence
File: lib/git_pair/cli.ex
Line: 50
Function: execute_command:49
Variable: action
-----------------------------------------------
DOS.StringToAtom: Unsafe `String.to_atom` - Low Confidence
File: lib/git_pair/cli.ex
Line: 46
Function: execute_command:45
Variable: action
-----------------------------------------------
... SCAN COMPLETE ...