Skip to content

Commit f29eb2f

Browse files
authored
Revert "Merge v0.5.0 into master (ethereum#982)"
This reverts commit d42de35.
1 parent d42de35 commit f29eb2f

File tree

1,424 files changed

+181889
-205072
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,424 files changed

+181889
-205072
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ and help.
3535

3636
## Configuration, dependencies, and tests
3737

38-
Please see the [Developers' Guide](https://geth.ethereum.org/docs/developers/geth-developer/dev-guide)
38+
Please see the [Developers' Guide](https://geth.ethereum.org/docs/developers/devguide)
3939
for more details on configuring your environment, managing project dependencies
4040
and testing procedures.

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
3030
- uses: actions/setup-go@v3
3131
with:
32-
go-version: 1.20.x
32+
go-version: 1.19.x
3333

3434
- name: Install dependencies on Linux
3535
if: runner.os == 'Linux'
@@ -98,7 +98,7 @@ jobs:
9898
9999
- uses: actions/setup-go@v3
100100
with:
101-
go-version: 1.20.x
101+
go-version: 1.18.x
102102

103103
- name: Checkout matic-cli
104104
uses: actions/checkout@v3

.github/workflows/packager.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Set up Go
2424
uses: actions/setup-go@master
2525
with:
26-
go-version: 1.20.x
26+
go-version: 1.19
2727
- name: Adding TAG to ENV
2828
run: echo "GIT_TAG=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV
2929

@@ -47,7 +47,7 @@ jobs:
4747
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.GIT_TAG }}-${{ env.ARCH }}
4848
env:
4949
ARCH: amd64
50-
50+
5151
- name: Running package build
5252
run: dpkg-deb --build --root-owner-group packaging/deb/bor-${{ env.GIT_TAG }}-${{ env.ARCH }}
5353
env:
@@ -476,7 +476,7 @@ jobs:
476476
ARCH: amd64
477477
NODE: archive
478478
NETWORK: mainnet
479-
- name: Building bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }} profile
479+
- name: Building bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }} profile
480480
run: dpkg-deb --build --root-owner-group packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
481481
env:
482482
ARCH: amd64
@@ -739,7 +739,7 @@ jobs:
739739
ARCH: arm64
740740
NODE: sentry
741741
NETWORK: mainnet
742-
- name: Building bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }} profile
742+
- name: Building bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }} profile
743743
run: dpkg-deb --build --root-owner-group packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
744744
env:
745745
ARCH: arm64
@@ -849,13 +849,13 @@ jobs:
849849
ARCH: arm64
850850
NODE: validator
851851
NETWORK: mainnet
852-
- name: Building bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }} profile
852+
- name: Building bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }} profile
853853
run: dpkg-deb --build --root-owner-group packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
854854
env:
855855
ARCH: arm64
856856
NODE: validator
857857
NETWORK: mainnet
858-
858+
859859
- name: Updating the control file to use with the arm64 profile
860860
run: cp -rp packaging/templates/package_scripts/control.profile.arm64 packaging/deb/bor/DEBIAN/control
861861

@@ -895,7 +895,7 @@ jobs:
895895
ARCH: arm64
896896
NODE: archive
897897
NETWORK: mumbai
898-
- name: Building bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }} profile
898+
- name: Building bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }} profile
899899
run: dpkg-deb --build --root-owner-group packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
900900
env:
901901
ARCH: arm64
@@ -938,7 +938,7 @@ jobs:
938938
ARCH: arm64
939939
NODE: archive
940940
NETWORK: mainnet
941-
- name: Building bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }} profile
941+
- name: Building bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }} profile
942942
run: dpkg-deb --build --root-owner-group packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
943943
env:
944944
ARCH: arm64

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up Go
2222
uses: actions/setup-go@master
2323
with:
24-
go-version: 1.20.x
24+
go-version: 1.19.x
2525

2626
- name: Prepare
2727
id: prepare

.github/workflows/security-ci.yml

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,47 @@ name: Security CI
22
on: [ push, pull_request ]
33

44
jobs:
5+
snyk:
6+
name: Snyk and Publish
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout Source
10+
uses: actions/checkout@master
11+
- name: Run Snyk to check for vulnerabilities
12+
uses: snyk/actions/golang@master
13+
continue-on-error: true
14+
env:
15+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
16+
GOFLAGS: "-buildvcs=false"
17+
with:
18+
args: --org=${{ secrets.SNYK_ORG }} --severity-threshold=medium --sarif-file-output=snyk.sarif
19+
- name: Upload result to GitHub Code Scanning
20+
uses: github/codeql-action/upload-sarif@v2
21+
continue-on-error: true
22+
with:
23+
sarif_file: snyk.sarif
24+
25+
snyk-code:
26+
name: Snyk Code and Publish
27+
runs-on: ubuntu-latest
28+
continue-on-error: true
29+
steps:
30+
- name: Checkout Source
31+
uses: actions/checkout@master
32+
- name: Run Snyk SAST to check for code vulnerabilities
33+
uses: snyk/actions/golang@master
34+
continue-on-error: true
35+
env:
36+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
37+
with:
38+
args: --org=${{ secrets.SNYK_ORG }} --sarif-file-output=snyk.sarif
39+
command: code test
40+
- name: Upload result to GitHub Code Scanning
41+
uses: github/codeql-action/upload-sarif@v2
42+
continue-on-error: true
43+
with:
44+
sarif_file: snyk.sarif
45+
546
govuln:
647
name: Run govuln check and Publish
748
runs-on: ubuntu-latest
@@ -13,7 +54,8 @@ jobs:
1354
env:
1455
DEBUG: "true"
1556
with:
16-
go-version: 1.20.5
57+
go-version: 1.19
58+
vulncheck-version: latest
1759
package: ./...
1860
github-token: ${{ secrets.GITHUB_TOKEN }}
1961
fail-on-vuln: true
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: SonarQube CI
2+
on:
3+
push:
4+
branches:
5+
- develop
6+
7+
jobs:
8+
sonarqube:
9+
name: SonarQube
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
# Disabling shallow clone is recommended for improving relevancy of reporting.
15+
fetch-depth: 0
16+
17+
# Triggering SonarQube analysis as results of it are required by Quality Gate check.
18+
- name: SonarQube Scan
19+
uses: sonarsource/sonarqube-scan-action@master
20+
env:
21+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
22+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
23+
24+
# Check the Quality Gate status.
25+
- name: SonarQube Quality Gate check
26+
id: sonarqube-quality-gate-check
27+
uses: sonarsource/sonarqube-quality-gate-action@master
28+
# Force to fail step after specific time.
29+
timeout-minutes: 5
30+
env:
31+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
32+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

.golangci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file configures github.com/golangci/golangci-lint.
22

33
run:
4-
go: '1.20'
4+
go: '1.18'
55
timeout: 20m
66
tests: true
77
# default is true. Enables skipping of directories:
@@ -146,7 +146,7 @@ linters-settings:
146146

147147
issues:
148148
exclude-rules:
149-
- path: crypto/bn256/cloudflare/optate.go
149+
- path: crypto/blake2b/
150150
linters:
151151
- deadcode
152152
- path: crypto/bn256/cloudflare

.goreleaser.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ nfpms:
103103
scripts:
104104
postinstall: builder/files/bor-post-install.sh
105105

106+
overrides:
107+
rpm:
108+
replacements:
109+
amd64: x86_64
110+
106111
snapshot:
107112
name_template: "{{ .Tag }}.next"
108113

0 commit comments

Comments
 (0)