Skip to content

Commit dd90304

Browse files
fleandreiCopilot
andauthored
fix some dep vulnerabilities (#1441)
* fix some dep vulnerabilities * Update web/massastation/src/mirage/handlers/plugin.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix put version 1.24 and added dep audit task * fix dashboard plugins instaling spinner of massawallet is triggered at the same time as nodeManager * fix PLUGIN_LIST removal error --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f23e9da commit dd90304

File tree

14 files changed

+616
-1631
lines changed

14 files changed

+616
-1631
lines changed

Taskfile.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ tasks:
1919
- cmd: go install github.com/go-swagger/go-swagger/cmd/swagger@latest
2020
- cmd: go install golang.org/x/tools/cmd/stringer@latest
2121
- cmd: go install go.uber.org/mock/mockgen@v0.2.0
22-
- cmd: go install fyne.io/tools/cmd/fyne@latest
22+
- cmd: go install fyne.io/tools/cmd/fyne@v1.7.0
2323

2424
install-dev:
2525
desc: Installs development dependencies (fmt, lint, etc.)
2626
cmds:
2727
- cmd: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.3.1
2828
- cmd: go install github.com/daixiang0/gci@latest
2929
- cmd: go install mvdan.cc/gofumpt@latest
30+
- cmd: go install golang.org/x/vuln/cmd/govulncheck@v1.1.4
3031
- task: install-dev-win
3132

3233
install-dev-win:
@@ -68,6 +69,12 @@ tasks:
6869
cmds:
6970
- cmd: npm run fmt
7071

72+
audit-dependencies:
73+
desc: Audits dependencies
74+
cmds:
75+
- cmd: govulncheck -show verbose ./...
76+
- cmd: cd web/massastation && npm audit 2>&1 || true # ignore errors
77+
7178
run:
7279
desc: Runs MassaStation in DEBUG mode
7380
cmds:

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/massalabs/station
22

3-
go 1.21
3+
go 1.24
44

55
require (
66
fyne.io/fyne/v2 v2.7.1
@@ -15,15 +15,15 @@ require (
1515
github.com/hashicorp/go-version v1.6.0
1616
github.com/rs/cors v1.8.2
1717
github.com/shopspring/decimal v1.3.1
18-
golang.org/x/net v0.35.0
18+
golang.org/x/net v0.38.0
1919
)
2020

2121
require (
2222
github.com/jessevdk/go-flags v1.4.0
2323
github.com/stretchr/testify v1.11.1
2424
go.uber.org/mock v0.2.0
2525
go.uber.org/zap v1.24.0
26-
golang.org/x/sys v0.30.0
26+
golang.org/x/sys v0.31.0
2727
gopkg.in/natefinch/lumberjack.v2 v2.2.1
2828
howett.net/plist v1.0.0
2929
)
@@ -84,6 +84,6 @@ require (
8484
github.com/xyproto/unzip v0.0.0-20150601123358-823950573952
8585
github.com/ybbus/jsonrpc/v3 v3.1.0
8686
go.mongodb.org/mongo-driver v1.8.3 // indirect
87-
golang.org/x/text v0.22.0 // indirect
87+
golang.org/x/text v0.23.0 // indirect
8888
gopkg.in/yaml.v2 v2.4.0
8989
)

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn
265265
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
266266
golang.org/x/net v0.0.0-20210421230115-4e50805a0758/go.mod h1:72T/g9IO56b78aLF+1Kcs5dz7/ng1VjMUvfKvpfy+jM=
267267
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
268-
golang.org/x/net v0.35.0 h1:T5GQRQb2y08kTAByq9L4/bz8cipCdA8FbRTXewonqY8=
269-
golang.org/x/net v0.35.0/go.mod h1:EglIi67kWsHKlRzzVMUD93VMSWGFOMSZgxFjparz1Qk=
268+
golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8=
269+
golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8=
270270
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
271271
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
272272
golang.org/x/sync v0.0.0-20190412183630-56d357773e84/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@@ -285,17 +285,17 @@ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7w
285285
golang.org/x/sys v0.0.0-20210420072515-93ed5bcd2bfe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
286286
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
287287
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
288-
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
289-
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
288+
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
289+
golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
290290
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
291291
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
292292
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
293293
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
294294
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
295295
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
296296
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
297-
golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM=
298-
golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY=
297+
golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY=
298+
golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4=
299299
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
300300
golang.org/x/tools v0.0.0-20190329151228-23e29df326fe/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
301301
golang.org/x/tools v0.0.0-20190416151739-9c9e1878f421/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=

installer/deb/create_deb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fatal() {
2020
# Install dependencies required to build the MassaStation binary.
2121
install_massastation_build_dependencies() {
2222
sudo apt-get install libgl1-mesa-dev xorg-dev -y || fatal "failed to install libgl1-mesa-dev xorg-dev"
23-
go install fyne.io/tools/cmd/fyne@latest || fatal "failed to install fyne.io/tools/cmd/fyne@latest"
23+
go install fyne.io/tools/cmd/fyne@v1.7.0 || fatal "failed to install fyne.io/tools/cmd/fyne@v1.7.0"
2424
go install github.com/go-swagger/go-swagger/cmd/swagger@latest || fatal "failed to install github.com/go-swagger/go-swagger/cmd/swagger@latest"
2525
go install golang.org/x/tools/cmd/stringer@latest || fatal "failed to install golang.org/x/tools/cmd/stringer@latest"
2626
}

installer/macos/create_pkg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fatal() {
3737

3838
# Install dependencies required to build the MassaStation binary.
3939
install_massastation_build_dependencies() {
40-
go install fyne.io/tools/cmd/fyne@latest
40+
go install fyne.io/tools/cmd/fyne@v1.7.0
4141
go install github.com/go-swagger/go-swagger/cmd/swagger@latest
4242
go install golang.org/x/tools/cmd/stringer@latest
4343
}

pkg/plugin/status_string.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)