Files
cron-checker/.gitea/workflows/ci.yaml
T
argoyleandrenovate 7c0445b4ef
Unbound Release / Check Preconditions (push) Successful in 24s
Unbound Release / Create Tag (push) Skipped
Unbound Release / Generate Changelog and Handle PR (push) Successful in 41s
Unbound Release / Create Release (push) Successful in 42s
Release / release (push) Successful in 1m50s
cron-checker / build (push) Successful in 13m47s
cron-checker / test (push) Successful in 1m8s
cron-checker / vulnerabilities (push) Successful in 55s
ci: derive Go version from go.mod instead of 'stable' (#397)
Root cause of the failing `vulnerabilities` and `test` jobs on the open Renovate PRs.

`actions/setup-go` resolves `go-version: stable` from the `actions/go-versions` manifest. On 2026-08-14 that manifest still pointed at **go1.26.5**, which carries 4 stdlib vulnerabilities (GO-2026-6218, GO-2026-6090, GO-2026-5972, GO-2026-5026), so `govulncheck` failed. It also broke the `test` job on #396 once go.mod required `go >= 1.26.6`, since setup-go sets `GOTOOLCHAIN=local`.

Switching to `go-version-file: go.mod` makes CI install exactly the toolchain go.mod declares. Renovate already tracks that directive (#395), so the Go version stops depending on manifest publishing lag.

After this lands, #394 / #395 / #396 should be rebased and re-run.

---------

Co-authored-by: Renovate Bot <renovate@unbound.se>
Reviewed-on: #397
2026-08-17 08:24:28 +00:00

44 lines
1.0 KiB
YAML

name: cron-checker
on:
push:
branches: [main]
tags: ['*']
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
- name: Run tests
run: go test -race -coverprofile=coverage.txt ./...
vulnerabilities:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
- name: Check vulnerabilities
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
build:
runs-on: ubuntu-latest
needs: [test, vulnerabilities]
env:
BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_CONTENT }}
GITEA_REPOSITORY: ${{ gitea.repository }}
steps:
- uses: actions/checkout@v7
- uses: buildtool/setup-buildtools-action@v1
- name: Build and push
run: unset GITEA_TOKEN && build && push