Skip to content

fix(filters): harden target matching artifacts #34

fix(filters): harden target matching artifacts

fix(filters): harden target matching artifacts #34

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Verify formatting
run: |
set -euo pipefail
unformatted="$(gofmt -l ./cmd ./internal)"
if [ -n "$unformatted" ]; then
echo "These files need gofmt:"
echo "$unformatted"
exit 1
fi
- name: Run tests
run: go test ./...
- name: Run go vet
run: go vet -unsafeptr=false ./...
- name: Run govulncheck
uses: golang/govulncheck-action@v1
with:
go-version-file: go.mod
go-package: ./...