forked from maticnetwork/bor
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from blocknative/0.3.9
merge upstream 0.3.9
- Loading branch information
Showing
165 changed files
with
9,025 additions
and
31,458 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,25 @@ | ||
defaultStake: 10000 | ||
defaultFee: 2000 | ||
borChainId: "15001" | ||
borChainId: 15001 | ||
heimdallChainId: heimdall-15001 | ||
contractsBranch: jc/v0.3.1-backport | ||
sprintSize: 64 | ||
blockNumber: '0' | ||
blockTime: '2' | ||
numOfValidators: 3 | ||
numOfNonValidators: 0 | ||
contractsBranch: mardizzone/node-16 | ||
genesisContractsBranch: master | ||
sprintSize: | ||
- '64' | ||
blockNumber: | ||
- '0' | ||
blockTime: | ||
- '2' | ||
numOfBorValidators: 3 | ||
numOfBorSentries: 0 | ||
numOfBorArchiveNodes: 0 | ||
numOfErigonValidators: 0 | ||
numOfErigonSentries: 0 | ||
numOfErigonArchiveNodes: 0 | ||
ethURL: http://ganache:9545 | ||
ethHostUser: ubuntu | ||
devnetType: docker | ||
borDockerBuildContext: "../../bor" | ||
heimdallDockerBuildContext: "https://github.com/maticnetwork/heimdall.git#develop" | ||
sprintSizeBlockNumber: | ||
- '0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Security CI | ||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
snyk: | ||
name: Snyk and Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Source | ||
uses: actions/checkout@master | ||
- name: Run Snyk to check for vulnerabilities | ||
uses: snyk/actions/golang@master | ||
continue-on-error: true | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
GOFLAGS: "-buildvcs=false" | ||
with: | ||
args: --org=${{ secrets.SNYK_ORG }} --severity-threshold=medium --sarif-file-output=snyk.sarif | ||
- name: Upload result to GitHub Code Scanning | ||
uses: github/codeql-action/upload-sarif@v2 | ||
continue-on-error: true | ||
with: | ||
sarif_file: snyk.sarif | ||
|
||
snyk-code: | ||
name: Snyk Code and Publish | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- name: Checkout Source | ||
uses: actions/checkout@master | ||
- name: Run Snyk SAST to check for code vulnerabilities | ||
uses: snyk/actions/golang@master | ||
continue-on-error: true | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
with: | ||
args: --org=${{ secrets.SNYK_ORG }} --sarif-file-output=snyk.sarif | ||
command: code test | ||
- name: Upload result to GitHub Code Scanning | ||
uses: github/codeql-action/upload-sarif@v2 | ||
continue-on-error: true | ||
with: | ||
sarif_file: snyk.sarif | ||
|
||
govuln: | ||
name: Run govuln check and Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Running govulncheck | ||
uses: Templum/[email protected] | ||
continue-on-error: true | ||
env: | ||
DEBUG: "true" | ||
with: | ||
go-version: 1.19 | ||
vulncheck-version: latest | ||
package: ./... | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
fail-on-vuln: true | ||
|
||
- name: Upload govulncheck report | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: raw-report | ||
path: raw-report.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: SonarQube CI | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
sonarqube: | ||
name: SonarQube | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
# Disabling shallow clone is recommended for improving relevancy of reporting. | ||
fetch-depth: 0 | ||
|
||
# Triggering SonarQube analysis as results of it are required by Quality Gate check. | ||
- name: SonarQube Scan | ||
uses: sonarsource/sonarqube-scan-action@master | ||
env: | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} | ||
|
||
# Check the Quality Gate status. | ||
- name: SonarQube Quality Gate check | ||
id: sonarqube-quality-gate-check | ||
uses: sonarsource/sonarqube-quality-gate-action@master | ||
# Force to fail step after specific time. | ||
timeout-minutes: 5 | ||
env: | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,4 +54,6 @@ profile.cov | |
|
||
dist | ||
|
||
.dccache | ||
|
||
*.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. | ||
version: v1.25.0 | ||
# ignores vulnerabilities until expiry date; change duration by modifying expiry date | ||
ignore: | ||
'snyk:lic:golang:github.com:karalabe:usb:LGPL-3.0': | ||
- '*': | ||
reason: 'As open source org, we have no issues with licenses' | ||
created: 2022-11-11T08:06:37.028Z | ||
'snyk:lic:golang:github.com:mitchellh:cli:MPL-2.0': | ||
- '*': | ||
reason: 'As open source org, we have no issues with licenses' | ||
created: 2022-11-11T08:07:42.661Z | ||
'snyk:lic:golang:github.com:hashicorp:hcl:v2:MPL-2.0': | ||
- '*': | ||
reason: 'As open source org, we have no issues with licenses' | ||
created: 2022-11-11T08:09:08.112Z | ||
'snyk:lic:golang:github.com:hashicorp:go-multierror:MPL-2.0': | ||
- '*': | ||
reason: 'As open source org, we have no issues with licenses' | ||
created: 2022-11-11T08:09:14.673Z | ||
'snyk:lic:golang:github.com:hashicorp:go-bexpr:MPL-2.0': | ||
- '*': | ||
reason: 'As open source org, we have no issues with licenses' | ||
created: 2022-11-11T08:09:21.843Z | ||
'snyk:lic:golang:github.com:hashicorp:errwrap:MPL-2.0': | ||
- '*': | ||
reason: 'As open source org, we have no issues with licenses' | ||
created: 2022-11-11T08:09:28.257Z | ||
'snyk:lic:golang:github.com:ethereum:go-ethereum:LGPL-3.0': | ||
- '*': | ||
reason: 'As open source org, we have no issues with licenses' | ||
created: 2022-11-11T08:09:35.273Z | ||
'snyk:lic:golang:github.com:maticnetwork:polyproto:GPL-3.0': | ||
- '*': | ||
reason: 'As open source org, we have no issues with licenses' | ||
created: 2022-11-11T08:09:41.635Z | ||
'SNYK-GOLANG-GOLANGORGXNETHTTP2-3160322': | ||
- '*': | ||
reason: 'grpc working on a release to fix the issue' | ||
created: 2022-12-12T06:50:00.000Z | ||
patch: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.