handle resolve of NULL pointers #643
Workflow file for this run
This file contains hidden or 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
| name: Lint protobuf API | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - v* | |
| paths: | |
| - api/** | |
| - docs/content/en/docs/reference/grpc-api.md | |
| - .github/workflows/lint-proto.yaml | |
| pull_request: | |
| paths: | |
| - api/** | |
| - docs/content/en/docs/reference/grpc-api.md | |
| - .github/workflows/lint-proto.yaml | |
| jobs: | |
| lint-proto: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Lint protobuf | |
| run: | | |
| make protoc-gen-go-tetragon | |
| # TODO: enable linting once we have a chance to fix the underlying issues | |
| # make -C api lint EXTRA_BUF_FLAGS="--error-format=github-actions" | |
| if ${{ github.event_name == 'push' }}; then | |
| make -C api check-breaking EXTRA_BUF_FLAGS="--error-format=github-actions" BUF_BREAKING_AGAINST_BRANCH="origin/${{ github.ref_name }}" | |
| else | |
| make -C api check-breaking EXTRA_BUF_FLAGS="--error-format=github-actions" BUF_BREAKING_AGAINST_BRANCH="origin/${{ github.base_ref }}" | |
| fi | |
| make -C api format EXTRA_BUF_FLAGS="--exit-code --error-format=github-actions" | |
| check-proto-generated: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Go | |
| uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0 | |
| with: | |
| # renovate: datasource=golang-version depName=go | |
| go-version: "1.25.6" | |
| - name: Go version | |
| run: go version | |
| - name: Validate that generated files are up to date. | |
| run: | | |
| set -ex | |
| # Don't run 'make protogen' here, as it duplicates linting and vendoring checks. | |
| make protoc-gen-go-tetragon | |
| make -C api vendor proto | |
| test -z "$(git status --porcelain)" | |
| if [ $? != 0 ]; then | |
| git status | |
| git diff | |
| echo "Protobuf API generated files are outdated." | |
| echo "Please run 'make protogen' and submit your changes."; exit 1 | |
| fi |