We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
IsDynamicActionsWorkflow
1 parent cabcb83 commit e250c71Copy full SHA for e250c71
go/extractor/util/util.go
@@ -312,3 +312,10 @@ func IsGolangVendorDirectory(dirPath string) bool {
312
fileExists(filepath.Join(dirPath, "../Gopkg.lock")) ||
313
fileExists(filepath.Join(dirPath, "../vendor.conf")))
314
}
315
+
316
+// Returns true if the `GITHUB_EVENT_NAME` environment variable is set and suggests that
317
+// we are running in a GitHub Actions workflow that was triggered by the `dynamic` event.
318
+// This is the case for e.g. Default Setup.
319
+func IsDynamicActionsWorkflow() bool {
320
+ return os.Getenv("GITHUB_EVENT_NAME") == "dynamic"
321
+}
0 commit comments