Skip to content

Commit b687dea

Browse files
committed
feat: improve dependabot regexp
1 parent 4fa2b17 commit b687dea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var GitHubOutputPwshRegexp = regexp.MustCompile(`(?m)(?i:env):GITHUB_OUTPUT`)
2424
var GitHubOutputBashRegexp = regexp.MustCompile(`(?m)>>\s*"*\${*GITHUB_OUTPUT`)
2525
var GitHubEnvPwshRegexp = regexp.MustCompile(`(?m)(?i:env):GITHUB_ENV`)
2626
var GitHubEnvBashRexexp = regexp.MustCompile(`(?m)>{1,2}\s*"*\${*GITHUB_ENV`)
27-
var BotActor = regexp.MustCompile(`(?m)github.actor\s*==\s*["'].*\[bot\]`)
27+
var BotActor = regexp.MustCompile(`(?m)github.(triggering_)?actor\s*?(=|!)=\s*?["'].*?\[bot\]`)
2828

2929
// GitCheckoutBashRexexp It’s not possible to include a backtick in a raw string literal (https://yourbasic.org/golang/multiline-string/)
3030
var GitCheckoutBashRexexp = regexp.MustCompile(`(?m)git checkout.*(\$|` + regexp.QuoteMeta("`") + `)`)

0 commit comments

Comments
 (0)