Skip to content

build(github-actions): bump aquasecurity/trivy-action from 0.21.0 to 0.22.0 #68

build(github-actions): bump aquasecurity/trivy-action from 0.21.0 to 0.22.0

build(github-actions): bump aquasecurity/trivy-action from 0.21.0 to 0.22.0 #68

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
golangci:
strategy:
matrix:
go-version:
- 1.21.x
name: lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- name: Config Path
run: "export PATH=$(go env GOPATH)/bin:$PATH"
- name: golangci-lint
uses: golangci/golangci-lint-action@v6.0.1
with:
version: latest
skip-pkg-cache: true
skip-build-cache: true
args: --timeout 5m
GoSecurity:
strategy:
matrix:
go-version: [1.21.x]
runs-on: ubuntu-latest
steps:
- name: Fetch Repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- name: Config Path
run: "export PATH=$(go env GOPATH)/bin:$PATH"
- name: Install Gosec
run: "go install github.com/securego/gosec/v2/cmd/gosec@latest"
- name: Run Gosec
working-directory: .
run: "gosec -tests ./..."
- name: Install govulncheck
run: "go install golang.org/x/vuln/cmd/govulncheck@latest"
- name: Run govulncheck
working-directory: .
run: "govulncheck ./..."