diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index 8415e7a5..2cddb2cf 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -17,7 +17,6 @@ jobs: - name: reviewdog-golangci-lint uses: reviewdog/action-golangci-lint@v2.3.1 with: - github_token: ${{ secrets.GITHUB_TOKEN }} go_version_file: go.mod golangci_lint_version: "v1.53.2" golangci_lint_flags: "-c .golangci.yml --allow-parallel-runners" @@ -41,7 +40,6 @@ jobs: - name: reviewdog-golangci-lint uses: reviewdog/action-golangci-lint@v2.3.1 with: - github_token: ${{ secrets.GITHUB_TOKEN }} go_version_file: go.mod golangci_lint_version: "v1.53.2" golangci_lint_flags: "-c .golangci-warnings.yml --allow-parallel-runners" diff --git a/util/test/account_testutil.go b/util/test/account_testutil.go index d7b91358..876d6e1c 100644 --- a/util/test/account_testutil.go +++ b/util/test/account_testutil.go @@ -58,7 +58,10 @@ func DecodeAddressOrPanic(addr string) sdk.Address { // This is necessary to ensure the hash of any two txns used in tests are never the same. func ArbitraryString() []byte { arb := make([]byte, config.MaxTxnNoteBytes) - rand.Read(arb) + _, err := rand.Read(arb) + if err != nil { + panic("rand.Read error") + } return arb }