[otel] updated otel dependencies to latest #41
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: Go | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dir: | |
- flagging | |
- logging | |
- otel | |
- utilities | |
- orm | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.18 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Get dependencies | |
working-directory: ${{ matrix.dir }} | |
run: go mod download | |
- name: Test | |
working-directory: ${{ matrix.dir }} | |
run: go test -v -coverpkg=./... ./... | |
- name: Install Gosec | |
run: go install github.com/securego/gosec/v2/cmd/gosec@latest | |
- name: Run Gosec Security Scanner | |
working-directory: ${{ matrix.dir }} | |
run: gosec -no-fail -fmt sarif -out results.sarif ./... | |
- name: Upload SARIF file | |
uses: github/codeql-action/upload-sarif@v1 | |
with: | |
# Path to SARIF file relative to the root of the repository | |
sarif_file: ${{ matrix.dir }}/results.sarif |