Skip to content

Commit

Permalink
doco: callTree format
Browse files Browse the repository at this point in the history
  • Loading branch information
bhamail committed Mar 9, 2020
1 parent 4bf036f commit 0b34e0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions useragent/useragent.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ var (
// can be used to tell if nancy is being ran inside an orb, bitbucket pipeline, etc... that
// we authored
func GetUserAgent() string {
// where callTree format is:
// toolName__toolVersion___subToolName__subToolVersion___subSubToolName__subSubToolVersion
//
// double underscore "__" delimits Name/Version
// triple underscore "___" delimits currentCaller/priorCaller/priorPriorCaller
callTree := os.Getenv("SC_CALLER_INFO")
if checkForCIEnvironment() {
return checkCIEnvironments(callTree)
Expand Down

0 comments on commit 0b34e0b

Please sign in to comment.