Skip to content

Upgrade: Bump golangci/golangci-lint-action from 6.1.0 to 6.1.1 #390

Upgrade: Bump golangci/golangci-lint-action from 6.1.0 to 6.1.1

Upgrade: Bump golangci/golangci-lint-action from 6.1.0 to 6.1.1 #390

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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5
with:
go-version: "1.22"
cache: false
- name: Run tests
run: go test ./... -coverprofile=coverage.out -coverpkg=./... -covermode=atomic
- name: golangci-lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6
with:
version: v1.59
args: -v --config=.ci.yml
skip-pkg-cache: true
skip-build-cache: true
- name: Static check
uses: dominikh/staticcheck-action@fe1dd0c3658873b46f8c9bb3291096a617310ca6 # v1.3.1
with:
version: "2023.1.6"
install-go: false
cache-key: "1.22"
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8 # 0.24.0
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@8214744c546c1e5c8f03dde8fab3a7353211988d # v3
with:
sarif_file: "trivy-results.sarif"