Set -Xms and -XX:UseG1GC for java runtime #284
Workflow file for this run
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
name: Precommit - Scan security vulnerabilities | |
on: | |
pull_request: | |
branches: | |
- '*' | |
paths-ignore: | |
- 'docs/**' | |
- 'README.md' | |
- 'CHANGELOG.md' | |
- 'PROJECT' | |
- 'LICENSE' | |
- 'mesh-worker-service/README.md' | |
- 'tools/README.md' | |
jobs: | |
build: | |
name: Scan | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Set up GO 1.20.4 | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.20.4 | |
id: go | |
- name: InstallKubebuilder | |
run: | | |
curl -L https://github.com/kubernetes-sigs/kubebuilder/releases/download/v2.3.1/kubebuilder_2.3.1_linux_amd64.tar.gz | tar -xz -C /tmp/ | |
sudo mv /tmp/kubebuilder_2.3.1_linux_amd64 /usr/local/kubebuilder | |
export PATH=$PATH:/usr/local/kubebuilder/bin | |
- name: Install operator-sdk | |
run: | | |
RELEASE_VERSION=v1.14.0 | |
curl -LO "https://github.com/operator-framework/operator-sdk/releases/download/${RELEASE_VERSION}/operator-sdk_linux_amd64" | |
chmod +x operator-sdk_linux_amd64 && sudo mkdir -p /usr/local/bin/ && sudo mv operator-sdk_linux_amd64 /usr/local/bin/operator-sdk | |
- name: Set up yq | |
run: | | |
sudo wget https://github.com/mikefarah/yq/releases/download/v4.30.4/yq_linux_amd64 -O /usr/bin/yq | |
sudo chmod +x /usr/bin/yq | |
yq --help | |
- name: Build operator image | |
run: | | |
make generate | |
make helm-crds | |
image="function-mesh-operator:latest" | |
IMG=${image} make docker-build-skip-test | |
- name: Run Trivy vulnerability scanner | |
uses: aquasecurity/trivy-action@master | |
with: | |
image-ref: 'function-mesh-operator:latest' | |
format: 'table' | |
exit-code: '1' |