Skip to content

Upgrade: Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#35) #67

Upgrade: Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#35)

Upgrade: Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#35) #67

Workflow file for this run

name: ci
on:
push:
branches:
- "*"
- main
pull_request:
permissions:
contents: write
security-events: write
# Optional: allow read access to pull request. Use with `only-new-issues` option.
pull-requests: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: false
- name: Run tests
run: go test ./... -coverprofile=coverage.out -coverpkg=./... -covermode=atomic
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
args: -v --config=.ci.yml
skip-pkg-cache: true
skip-build-cache: true
- name: Static check
uses: dominikh/staticcheck-action@v1.3.0
with:
version: "2023.1.6"
install-go: false
cache-key: '1.21'
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@master
with:
scan-type: "fs"
ignore-unfixed: true
format: sarif
output: 'trivy-results.sarif'
severity: 'CRITICAL,HIGH'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'