Skip to content

Commit 36f061c

Browse files
authored
Merge pull request #437 from projectdiscovery/dev
notify v1.0.7
2 parents 328cc3d + cf8dc4a commit 36f061c

File tree

9 files changed

+174
-1165
lines changed

9 files changed

+174
-1165
lines changed

.github/workflows/build-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ jobs:
3939
SLACK_WEBHOOK_URL: "${{ secrets.SLACK_WEBHOOK_URL }}"
4040
CUSTOM_WEBHOOK_URL: "${{ secrets.CUSTOM_WEBHOOK_URL }}"
4141
run: |
42+
if [ "$GITHUB_ACTOR" == "dependabot[bot]" ]; then
43+
export DEPENDABOT=true
44+
fi
4245
chmod +x gotify.sh
4346
chmod +x action-run.sh
4447
bash action-run.sh

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ This will display help for the tool. Here are all the switches it supports.
6464
| `-no-color` | disable colors in output | `notify -nc` |
6565
| `-provider-config` | provider config path | `notify -pc provider.yaml` |
6666
| `-provider` | provider to send the notification to (optional) | `notify -p slack,telegram` |
67-
| `-proxy` | http proxy to use with notify | `notify -proxy http://127.0.0.1:8080` |
67+
| `-proxy` | HTTP/SOCKSv5 proxy to use with notify | `notify -proxy http://127.0.0.1:8080` |
6868
| `-rate-limit` | maximum number of HTTP requests to send per second | `notify -rl 1` |
6969
| `-silent` | enable silent mode | `notify -silent` |
7070
| `-verbose` | enable verbose mode | `notify -verbose` |

cmd/integration-test/integration.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
var (
1414
providerConfig = flag.String("provider-config", "", "provider config to use for testing")
1515
debug = os.Getenv("DEBUG") == "true"
16+
isDependabot = os.Getenv("DEPENDABOT") == "true"
1617
errored = false
1718
success = aurora.Green("[✓]").String()
1819
failed = aurora.Red("[✘]").String()
@@ -32,6 +33,10 @@ func main() {
3233
flag.Parse()
3334

3435
for name, test := range testCases {
36+
// run only gotify test for dependabot
37+
if isDependabot && name != "gotify" {
38+
continue
39+
}
3540
fmt.Printf("Running test cases for \"%s\"\n", aurora.Blue(name))
3641
err := test.Execute()
3742
if err != nil {

cmd/notify/notify.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func readConfig() {
6363
set.BoolVarP(&options.Verbose, "verbose", "v", false, "enable verbose mode")
6464
set.BoolVar(&options.Version, "version", false, "display version")
6565
set.BoolVarP(&options.NoColor, "no-color", "nc", false, "disable colors in output")
66-
set.StringVar(&options.Proxy, "proxy", "", "HTTP Proxy to use with notify")
66+
set.StringVar(&options.Proxy, "proxy", "", "HTTP/SOCKSv5 proxy to use with notify")
6767
set.CallbackVarP(runner.GetUpdateCallback(), "update", "up", "update notify to latest version")
6868
set.BoolVarP(&options.DisableUpdateCheck, "disable-update-check", "duc", false, "disable automatic notify update check")
6969

go.mod

Lines changed: 41 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ go 1.21
55
require (
66
github.com/Masterminds/sprig v2.22.0+incompatible
77
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d
8-
github.com/containrrr/shoutrrr v0.7.1
8+
github.com/containrrr/shoutrrr v0.8.0
99
github.com/json-iterator/go v1.1.12
1010
github.com/logrusorgru/aurora v2.0.3+incompatible
1111
github.com/oriser/regroup v0.0.0-20210730155327-fca8d7531263
1212
github.com/pkg/errors v0.9.1
13-
github.com/projectdiscovery/goflags v0.1.38
14-
github.com/projectdiscovery/gologger v1.1.12
15-
github.com/projectdiscovery/utils v0.0.76
13+
github.com/projectdiscovery/goflags v0.1.64
14+
github.com/projectdiscovery/gologger v1.1.29
15+
github.com/projectdiscovery/utils v0.2.16
1616
go.uber.org/multierr v1.11.0
1717
go.uber.org/ratelimit v0.3.0
1818
gopkg.in/yaml.v3 v3.0.1
@@ -24,61 +24,77 @@ require (
2424
github.com/Masterminds/semver v1.5.0 // indirect
2525
github.com/Masterminds/semver/v3 v3.2.1 // indirect
2626
github.com/VividCortex/ewma v1.2.0 // indirect
27-
github.com/alecthomas/chroma v0.10.0 // indirect
27+
github.com/alecthomas/chroma/v2 v2.14.0 // indirect
2828
github.com/andybalholm/brotli v1.0.6 // indirect
2929
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
3030
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
3131
github.com/aymerick/douceur v0.2.0 // indirect
3232
github.com/benbjohnson/clock v1.3.0 // indirect
33-
github.com/charmbracelet/glamour v0.6.0 // indirect
33+
github.com/charmbracelet/glamour v0.8.0 // indirect
34+
github.com/charmbracelet/lipgloss v0.13.0 // indirect
35+
github.com/charmbracelet/x/ansi v0.3.2 // indirect
3436
github.com/cheggaaa/pb/v3 v3.1.4 // indirect
3537
github.com/cnf/structhash v0.0.0-20201127153200-e1b16c1ebc08 // indirect
36-
github.com/denisbrodbeck/machineid v1.0.1 // indirect
37-
github.com/dlclark/regexp2 v1.10.0 // indirect
38+
github.com/dlclark/regexp2 v1.11.4 // indirect
3839
github.com/dsnet/compress v0.0.2-0.20210315054119-f66993602bf5 // indirect
3940
github.com/fatih/color v1.15.0 // indirect
41+
github.com/go-ole/go-ole v1.2.6 // indirect
4042
github.com/golang/protobuf v1.5.3 // indirect
4143
github.com/golang/snappy v0.0.4 // indirect
4244
github.com/google/go-github/v30 v30.1.0 // indirect
4345
github.com/google/go-querystring v1.1.0 // indirect
44-
github.com/google/uuid v1.3.0 // indirect
45-
github.com/gorilla/css v1.0.0 // indirect
46+
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
47+
github.com/google/uuid v1.3.1 // indirect
48+
github.com/gorilla/css v1.0.1 // indirect
4649
github.com/huandu/xstrings v1.4.0 // indirect
4750
github.com/imdario/mergo v0.3.15 // indirect
48-
github.com/klauspost/compress v1.16.7 // indirect
51+
github.com/klauspost/compress v1.17.4 // indirect
4952
github.com/klauspost/pgzip v1.2.5 // indirect
5053
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
54+
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
5155
github.com/mattn/go-colorable v0.1.13 // indirect
52-
github.com/mattn/go-isatty v0.0.19 // indirect
53-
github.com/mattn/go-runewidth v0.0.14 // indirect
56+
github.com/mattn/go-isatty v0.0.20 // indirect
57+
github.com/mattn/go-runewidth v0.0.16 // indirect
5458
github.com/mholt/archiver/v3 v3.5.1 // indirect
55-
github.com/microcosm-cc/bluemonday v1.0.25 // indirect
59+
github.com/microcosm-cc/bluemonday v1.0.27 // indirect
5660
github.com/miekg/dns v1.1.56 // indirect
5761
github.com/minio/selfupdate v0.6.1-0.20230907112617-f11e74f84ca7 // indirect
5862
github.com/mitchellh/copystructure v1.2.0 // indirect
5963
github.com/mitchellh/reflectwalk v1.0.2 // indirect
6064
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
6165
github.com/modern-go/reflect2 v1.0.2 // indirect
6266
github.com/muesli/reflow v0.3.0 // indirect
63-
github.com/muesli/termenv v0.15.1 // indirect
67+
github.com/muesli/termenv v0.15.3-0.20240618155329-98d742f6907a // indirect
6468
github.com/nwaples/rardecode v1.1.3 // indirect
65-
github.com/olekukonko/tablewriter v0.0.5 // indirect
6669
github.com/pierrec/lz4/v4 v4.1.2 // indirect
70+
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
6771
github.com/projectdiscovery/blackrock v0.0.1 // indirect
68-
github.com/rivo/uniseg v0.4.4 // indirect
72+
github.com/projectdiscovery/machineid v0.0.0-20240226150047-2e2c51e35983 // indirect
73+
github.com/rivo/uniseg v0.4.7 // indirect
6974
github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d // indirect
75+
github.com/shirou/gopsutil/v3 v3.23.7 // indirect
76+
github.com/shoenig/go-m1cpu v0.1.6 // indirect
77+
github.com/tidwall/gjson v1.14.3 // indirect
78+
github.com/tidwall/match v1.1.1 // indirect
79+
github.com/tidwall/pretty v1.2.0 // indirect
80+
github.com/tklauser/go-sysconf v0.3.12 // indirect
81+
github.com/tklauser/numcpus v0.6.1 // indirect
7082
github.com/ulikunitz/xz v0.5.11 // indirect
7183
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
72-
github.com/yuin/goldmark v1.5.4 // indirect
73-
github.com/yuin/goldmark-emoji v1.0.1 // indirect
74-
golang.org/x/crypto v0.17.0 // indirect
84+
github.com/yuin/goldmark v1.7.4 // indirect
85+
github.com/yuin/goldmark-emoji v1.0.3 // indirect
86+
github.com/yusufpapurcu/wmi v1.2.4 // indirect
87+
github.com/zcalusic/sysinfo v1.0.2 // indirect
88+
golang.org/x/crypto v0.27.0 // indirect
7589
golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc // indirect
76-
golang.org/x/mod v0.12.0 // indirect
77-
golang.org/x/net v0.17.0 // indirect
90+
golang.org/x/mod v0.17.0 // indirect
91+
golang.org/x/net v0.29.0 // indirect
7892
golang.org/x/oauth2 v0.11.0 // indirect
79-
golang.org/x/sys v0.16.0 // indirect
80-
golang.org/x/tools v0.13.0 // indirect
93+
golang.org/x/sync v0.8.0 // indirect
94+
golang.org/x/sys v0.25.0 // indirect
95+
golang.org/x/term v0.24.0 // indirect
96+
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
8197
google.golang.org/appengine v1.6.7 // indirect
82-
google.golang.org/protobuf v1.31.0 // indirect
98+
google.golang.org/protobuf v1.33.0 // indirect
8399
gopkg.in/djherbis/times.v1 v1.3.0 // indirect
84100
)

0 commit comments

Comments
 (0)