Skip to content

ci: pin Snyk scan to explicit org ID #107

ci: pin Snyk scan to explicit org ID

ci: pin Snyk scan to explicit org ID #107

Workflow file for this run

name: Lint
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Check go mod tidy
run: |
go mod tidy
git diff --exit-code go.mod go.sum
- name: Check gofmt
run: |
UNFORMATTED=$(gofmt -l .)
if [ -n "$UNFORMATTED" ]; then
echo "::error::Files not formatted with gofmt:"
echo "$UNFORMATTED"
exit 1
fi
- name: Run go vet
run: go vet ./...