Fix sec lib upgrade #191
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: core-api ci | |
| on: | |
| push: | |
| branches: [ master, pre_*, ft_*, release/* ] | |
| paths: ['src/core-api/**', '.github/workflows/core-api.yml'] | |
| pull_request: | |
| branches: [ master, pre_*, ft_*, release/* ] | |
| paths: ['src/core-api/**', '.github/workflows/core-api.yml'] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: '1.25.5' | |
| cache-dependency-path: src/core-api/go.sum | |
| - name: Sync dependencies | |
| run: make dep && git diff --exit-code -- go.mod go.sum vendor | |
| working-directory: src/core-api | |
| - name: Build | |
| run: make build | |
| working-directory: src/core-api | |
| - name: Lint | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: v2.11.2 | |
| working-directory: src/core-api | |
| - name: Aqua Security Trivy | |
| uses: aquasecurity/trivy-action@0.19.0 | |
| continue-on-error: true | |
| with: | |
| scan-type: 'fs' | |
| scan-ref: 'src/core-api' | |
| - name: Test | |
| run: make test | |
| working-directory: src/core-api | |
| - name: Docker Build | |
| run: docker build --build-arg VERSION=ci --build-arg COMMIT=${GITHUB_SHA} -f Dockerfile . -t bk-apigateway-core-api:ci | |
| working-directory: src/core-api |