Skip to content

Commit 4797491

Browse files
egregius313owen-mc
andcommitted
Apply suggestions from code review
Co-authored-by: Owen Mansel-Chan <[email protected]>
1 parent ed36aaa commit 4797491

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
category: minorAnalysis
33
---
4-
* Local source models for reading and parsing environment variables have been added. The effect libraries include
5-
- "os"
4+
* Local source models for reading and parsing environment variables have been added for the following libraries:
5+
- os
66
- github.com/hashicorp/go-envparse
77
- github.com/joho/godotenv
88
- github.com/kelseyhightower/envconfig

go/ql/lib/ext/os.model.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,14 @@ extensions:
4646
pack: codeql/go-all
4747
extensible: sourceModel
4848
data:
49-
- ["os", "", False, "Environ", "", "", "ReturnValue", "environment", "manual"]
49+
- ["os", "", False, "Environ", "", "", "ReturnValue", "environment", "manual"] # TODO: when sources can have access paths, use .ArrayElement
50+
- ["os", "", False, "ExpandEnv", "", "", "ReturnValue", "environment", "manual"]
5051
- ["os", "", False, "Getenv", "", "", "ReturnValue", "environment", "manual"]
5152
- ["os", "", False, "LookupEnv", "", "", "ReturnValue[0]", "environment", "manual"]
5253
- ["os", "", False, "Open", "", "", "ReturnValue[0]", "file", "manual"]
5354
- ["os", "", False, "OpenFile", "", "", "ReturnValue[0]", "file", "manual"]
5455
- ["os", "", False, "ReadFile", "", "", "ReturnValue[0]", "file", "manual"]
56+
- ["os", "", False, "UserCacheDir", "", "", "ReturnValue[0]", "environment", "manual"]
57+
- ["os", "", False, "UserConfigDir", "", "", "ReturnValue[0]", "environment", "manual"]
58+
- ["os", "", False, "UserHomeDir", "", "", "ReturnValue[0]", "environment", "manual"]
59+
- ["os", "ProcAttr", False, "Env", "", "", "", "environment", "manual"] # TODO: when sources can have access paths, use .ArrayElement

0 commit comments

Comments
 (0)