Skip to content

Add vulnerability check (#15) #44

Add vulnerability check (#15)

Add vulnerability check (#15) #44

Workflow file for this run

name: Check library state
on: push
jobs:
check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler && protoc --version
- name: Check gRPC generated files not manually changed
shell: bash
run: |
make prepare-grpc-module
CHANGED=$(git diff --name-only ./pkg/common/grpc/**/*.go | wc -l)
if [ "${CHANGED}" -ne "0" ]; then
git diff ./pkg/common/grpc/**/*.go
echo "Committed Protobuf files do not match the newly generated. Please, regenerate Protobuf and commit changes"
exit 1
fi
- name: Build sources
run: make build
- name: Check sources
run: make run-test