mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
dev: chg: pos-1465: remove snyk and sonarqube (#908)
This commit is contained in:
parent
d5b6672c2f
commit
8fa0d6f6db
2 changed files with 0 additions and 73 deletions
41
.github/workflows/security-ci.yml
vendored
41
.github/workflows/security-ci.yml
vendored
|
|
@ -2,47 +2,6 @@ name: Security CI
|
||||||
on: [ push, pull_request ]
|
on: [ push, pull_request ]
|
||||||
|
|
||||||
jobs:
|
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:
|
govuln:
|
||||||
name: Run govuln check and Publish
|
name: Run govuln check and Publish
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
32
.github/workflows/security-sonarqube-ci.yml
vendored
32
.github/workflows/security-sonarqube-ci.yml
vendored
|
|
@ -1,32 +0,0 @@
|
||||||
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 }}
|
|
||||||
Loading…
Reference in a new issue