Skip to content

Fixing CodeQL errors #91

Fixing CodeQL errors

Fixing CodeQL errors #91

Workflow file for this run

name: Go-Lint
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Checkout
uses: actions/checkout@v4
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit hooks
run: pre-commit run --all-files
- name: Go Tidy
run: |
trap 'echo "::error file=go.mod,title=Go Tidy Check::Commit would leave go.mod untidy"' ERR
go clean -cache -modcache
go mod tidy
git diff --exit-code