Skip to content

test: integration test kafka #4051

test: integration test kafka

test: integration test kafka #4051

Workflow file for this run

name: Go Security CI
on:
push:
branches:
- "master"
paths:
- '**/*.go'
- '**/*.java'
- '**/go.mod'
pull_request:
branches:
- "*"
paths:
- '**/*.go'
- '**/*.java'
- '**/go.mod'
workflow_dispatch:
inputs:
logLevel:
description: "Log level"
required: true
default: "warning"
jobs:
govulncheck:
name: govulncheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Run vulnerability checks
run: govulncheck ./...
gosec:
name: GoSec Security Scanner
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
- name: install gosec
run: curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.22.11
- name: Run Gosec Security Scanner
run: $(go env GOPATH)/bin/gosec -exclude=G115 -severity=high -confidence=medium ./...
trivy-go:
name: trivy-go
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run Trivy Go vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@master
with:
skip-dirs: './destination/iceberg/olake-iceberg-java-writer'
exit-code: '1'
scan-type: 'fs'
scan-ref: './'
scanners: 'vuln'
severity: 'HIGH,CRITICAL'
ignore-unfixed: true
# TODO: Add Java Dependency Trivy (removed because trivy getting stuck or run for hours)
# trivy-java:
# name: trivy-java
# runs-on: ubuntu-latest
# timeout-minutes: 10
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
# - name: Run Trivy Java vulnerability scanner in repo mode
# uses: aquasecurity/trivy-action@master
# with:
# exit-code: '1'
# scan-type: 'fs'
# scan-ref: './destination/iceberg/olake-iceberg-java-writer'
# scanners: 'vuln'
# severity: 'HIGH,CRITICAL'