Skip to content

Commit 6f7271f

Browse files
committed
Added the workspace name in the scanning endpoint
1 parent 36b1a5a commit 6f7271f

5 files changed

Lines changed: 496 additions & 18 deletions

File tree

core/parse.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ func ParseInputFormat(raw string, options libs.Options) map[string]string {
148148
// ParseInput parse input for routine
149149
func ParseInput(raw string, options libs.Options) map[string]string {
150150
ROptions := ParseTarget(raw)
151+
if utils.IsFile(raw) {
152+
ROptions["TargetIsFile"] = "true"
153+
} else {
154+
ROptions["TargetIsFile"] = "false"
155+
}
156+
151157
if options.EnableFormatInput {
152158
// avoid the loophole
153159
options.EnableFormatInput = false
@@ -199,7 +205,6 @@ func ParseInput(raw string, options libs.Options) map[string]string {
199205
ROptions["Workspace"] = utils.CleanPath(options.Scan.CustomWorkspace)
200206
}
201207
ROptions["Output"] = path.Join(ROptions["Workspaces"], ROptions["Workspace"])
202-
203208
ROptions["ExecutionLog"] = path.Join(ROptions["Output"], "execution.log")
204209
ROptions["LogFile"] = options.LogFile
205210

libs/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "fmt"
44

55
const (
66
// VERSION of this project
7-
VERSION = "v4.7.0"
7+
VERSION = "v4.7.1"
88
// DESC description of the tool
99
DESC = "A Workflow Engine for Offensive Security"
1010
// BINARY name of osmedeus

0 commit comments

Comments
 (0)