Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
b454a04
Replace secrets inherit with explicit secret passing in deploy workflow
aggelion Apr 21, 2026
f1d1b2d
Suppress false positive semgrep findings for error handling patterns
aggelion Apr 21, 2026
dd84791
Suppress semgrep false positives for test files
aggelion Apr 21, 2026
317e8b2
Fix bugs and issues found during code review
aggelion Apr 21, 2026
7d5d596
Fix strict linter violations in CI
aggelion Apr 21, 2026
9ff8865
Fix strict linter formatting and nilnil violations
aggelion Apr 21, 2026
1977857
chore(deps): bump go.opentelemetry.io/otel (#2072)
dependabot[bot] Apr 26, 2026
66e87e3
Merge remote-tracking branch 'upstream/master' into issue-2068
aggelion Apr 26, 2026
5eac3d8
Add 'TestEmptyBlockJSONRoundTrip'. (#2071)
nickeskov Apr 26, 2026
3435b1f
Merge remote-tracking branch 'upstream/master' into issue-2068
aggelion Apr 26, 2026
4fa654e
chore(deps): bump github.com/nats-io/nats-server/v2 (#2073)
dependabot[bot] Apr 28, 2026
6c59940
Merge remote-tracking branch 'upstream/master' into issue-2068
aggelion Apr 28, 2026
958ad85
chore(deps): bump github.com/minio/minlz from 1.1.0 to 1.1.1 (#2075)
dependabot[bot] Apr 29, 2026
e937f3f
Merge remote-tracking branch 'upstream/master' into issue-2068
aggelion Apr 29, 2026
df743b0
chore(deps): bump securego/gosec from 2.25.0 to 2.26.1 (#2076)
dependabot[bot] Apr 29, 2026
0db3c11
Merge remote-tracking branch 'upstream/master' into issue-2068
aggelion Apr 29, 2026
9047b24
chore(deps): bump github.com/mattn/go-isatty from 0.0.21 to 0.0.22 (#…
dependabot[bot] Apr 29, 2026
c9d0929
Merge remote-tracking branch 'upstream/master' into issue-2068
aggelion Apr 29, 2026
9a14414
Update 'workflow_dispatch' inputs for deploy workflow. (#2077)
nickeskov Apr 30, 2026
8e207ef
Merge remote-tracking branch 'upstream/master' into issue-2068
aggelion Apr 30, 2026
178cce1
chore(deps): bump github.com/nats-io/nats-server/v2 (#2078)
dependabot[bot] May 1, 2026
b141c28
Merge remote-tracking branch 'upstream/master' into issue-2068
aggelion May 1, 2026
41b5053
Linter gomodguard updated to gomodguard_v2. (#2080)
alexeykiselev May 4, 2026
1fabff0
Merge remote-tracking branch 'upstream/master' into issue-2068
aggelion May 4, 2026
66ab36a
chore(deps): bump github/codeql-action from 4.35.2 to 4.35.3 (#2079)
dependabot[bot] May 4, 2026
25ecd49
Merge remote-tracking branch 'upstream/master' into issue-2068
aggelion May 4, 2026
f7ef306
chore(deps): bump github.com/fxamacker/cbor/v2 from 2.9.1 to 2.9.2 (#…
dependabot[bot] May 5, 2026
7a6919a
Merge remote-tracking branch 'upstream/master' into issue-2068
aggelion May 5, 2026
5c04808
chore(deps): bump google.golang.org/grpc from 1.80.0 to 1.81.0 (#2082)
dependabot[bot] May 5, 2026
dc8c2c5
Merge remote-tracking branch 'upstream/master' into issue-2068
aggelion May 5, 2026
96ff3f9
chore(deps): bump github/codeql-action from 4.35.3 to 4.35.4 (#2083)
dependabot[bot] May 8, 2026
793281a
Merge remote-tracking branch 'upstream/master' into issue-2068
aggelion May 8, 2026
ac88bf7
chore(deps): bump github.com/nats-io/nats.go from 1.51.0 to 1.52.0 (#…
dependabot[bot] May 8, 2026
cef6ba8
Merge remote-tracking branch 'upstream/master' into issue-2068
aggelion May 8, 2026
21c80ac
chore(deps): bump golang.org/x/sys from 0.43.0 to 0.44.0 (#2085)
dependabot[bot] May 11, 2026
12a7129
Merge remote-tracking branch 'upstream/master' into issue-2068
aggelion May 11, 2026
94a2003
chore(deps): bump golang.org/x/crypto from 0.50.0 to 0.51.0 (#2086)
dependabot[bot] May 11, 2026
8f10c86
Merge remote-tracking branch 'upstream/master' into issue-2068
aggelion May 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v3
uses: github/codeql-action/init@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -67,7 +67,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v3
uses: github/codeql-action/autobuild@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -81,4 +81,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v3
uses: github/codeql-action/analyze@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v3
11 changes: 9 additions & 2 deletions .github/workflows/deploy_node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,20 @@ on:
inputs:
network:
required: true
type: string
type: choice
description: "Waves network name (mainnet, testnet, stagenet)"
options:
- mainnet
- testnet
- stagenet
arch:
required: true
type: string
type: choice
description: "Machine architecture (amd64, arm64)"
default: "amd64"
options:
- amd64
- arm64
workflow_call:
inputs:
network:
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/deploy_nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ on:
inputs:
arch:
required: true
type: string
type: choice
description: "Machine architecture (amd64, arm64)"
default: "amd64"
options:
- amd64
- arm64

jobs:
deploy:
Expand All @@ -19,7 +22,11 @@ jobs:
network: [ stagenet, testnet, mainnet ]
arch: [ "${{ inputs.arch }}" ]
uses: "./.github/workflows/deploy_node.yml"
secrets: inherit
secrets:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
DEPLOYMENT_SERVER: ${{ secrets.DEPLOYMENT_SERVER }}
DEPLOYMENT_PORT: ${{ secrets.DEPLOYMENT_PORT }}
DEPLOYMENT_USER: ${{ secrets.DEPLOYMENT_USER }}
with:
network: ${{ matrix.network }}
arch: ${{ matrix.arch }}
4 changes: 3 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ jobs:
cache: true

- name: Set up GolangCI-Lint
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $HOME/bin latest
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v8
with:
version: latest

- name: Get dependencies
run: go mod vendor
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
with:
persist-credentials: false
- name: Run gosec security scanner
uses: securego/gosec@223e19b8856e00f02cc67804499a83f77e208f3c # v2.25.0
uses: securego/gosec@4a3bd8af174872c778439083ded7adbf3747e770 # v2.26.1
with:
# with '-no-fail' we let the report trigger content trigger a failure using the GitHub Security features.
args: "-no-fail -fmt sarif -out gosec.sarif ./..."
Expand All @@ -50,7 +50,7 @@ jobs:
jq empty gosec_fixed.sarif
mv gosec_fixed.sarif gosec.sarif
- name: Upload SARIF file for GitHub Advanced Security Dashboard
uses: github/codeql-action/upload-sarif@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v3
uses: github/codeql-action/upload-sarif@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v3
with:
sarif_file: gosec.sarif

Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
fi
EOF
- name: Upload SARIF file for GitHub Advanced Security Dashboard
uses: github/codeql-action/upload-sarif@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v3
uses: github/codeql-action/upload-sarif@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v3
with:
sarif_file: semgrep.sarif

Expand Down
29 changes: 14 additions & 15 deletions .golangci-strict.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ linters:
- gocyclo
- godot
- gomoddirectives
- gomodguard
- gomodguard_v2
- goprintffuncname
- gosec
- govet
Expand Down Expand Up @@ -106,21 +106,20 @@ linters:
paramsOnly: false
underef:
skipRecvDeref: false
gomodguard:
gomodguard_v2:
blocked:
modules:
- github.com/golang/protobuf:
recommendations:
- google.golang.org/protobuf
reason: see https://developers.google.com/protocol-buffers/docs/reference/go/faq#modules
- github.com/satori/go.uuid:
recommendations:
- github.com/google/uuid
reason: satori's package is not maintained
- github.com/gofrs/uuid:
recommendations:
- github.com/google/uuid
reason: gofrs' package is not go module
- module: github.com/golang/protobuf
recommendations:
- google.golang.org/protobuf
reason: see https://developers.google.com/protocol-buffers/docs/reference/go/faq#modules
- module: github.com/satori/go.uuid
recommendations:
- github.com/google/uuid
reason: satori's package is not maintained
- module: github.com/gofrs/uuid
recommendations:
- github.com/google/uuid
reason: gofrs' package is not go module
govet:
disable:
- fieldalignment
Expand Down
27 changes: 13 additions & 14 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,20 @@ linters:
- ^golang.org/x/tools/go/analysis.Analyzer$
- ^google.golang.org/protobuf/.+Options$
- ^gopkg.in/yaml.v3.Node$
gomodguard:
gomodguard_v2:
blocked:
modules:
- github.com/golang/protobuf:
recommendations:
- google.golang.org/protobuf
reason: see https://developers.google.com/protocol-buffers/docs/reference/go/faq#modules
- github.com/satori/go.uuid:
recommendations:
- github.com/google/uuid
reason: satori's package is not maintained
- github.com/gofrs/uuid:
recommendations:
- github.com/google/uuid
reason: gofrs' package is not go module
- module: github.com/golang/protobuf
recommendations:
- google.golang.org/protobuf
reason: see https://developers.google.com/protocol-buffers/docs/reference/go/faq#modules
- module: github.com/satori/go.uuid
recommendations:
- github.com/google/uuid
reason: satori's package is not maintained
- module: github.com/gofrs/uuid
recommendations:
- github.com/google/uuid
reason: gofrs' package is not go module
govet:
disable:
- fieldalignment
Expand Down
6 changes: 5 additions & 1 deletion cmd/chaincmp/chaincmp.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"os/signal"
"slices"
"strings"
"syscall"
"time"

flag "github.com/spf13/pflag"
Expand Down Expand Up @@ -109,7 +110,7 @@ func run() error {
urls := append([]string{node}, other...)
slog.Debug("Requesting height from nodes", "count", len(urls))

ctx, done := signal.NotifyContext(context.Background(), os.Interrupt)
ctx, done := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer done()

clients := make([]*client.Client, len(urls))
Expand Down Expand Up @@ -224,6 +225,9 @@ func findLastCommonHeight(ctx context.Context, clients []*client.Client, start,
return 0, fmt.Errorf("failed to get blocks signatures at height %d: %w", middle, err)
}
if c >= 2 {
if middle == 0 {
return 0, errors.New("no common height found")
}
stop = middle - 1
r = stop
} else {
Expand Down
1 change: 1 addition & 0 deletions cmd/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ func blockchainSettings(nc *config) (_ *settings.BlockchainSettings, retErr erro
return nil, errors.Wrap(err, "failed to open configuration file")
}
defer func() {
// nosemgrep: semgrep.rules.if-incorrect-nil-err-return, semgrep.rules.if-inplace-func-incorrect-nil-err-return
if clErr := f.Close(); clErr != nil {
retErr = stderrs.Join(retErr, errors.Wrap(clErr, "failed to close configuration file"))
}
Expand Down
Loading