Fix vulnerability: GO-2024-2947 (#78) #194
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
schedule: | |
- cron: '0 8 * * 1' # run "At 8:00 on Monday" | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 'stable' | |
check-latest: true | |
- run: go mod tidy && git diff --exit-code | |
- run: go mod download | |
- run: go mod verify | |
- run: go build -o /dev/null ./... |