Files
ilkerandClaude Opus 5.5 25233f5de6
ci / derle (push) Successful in 2m10s
hpcod: Go 1.27.4 and x/crypto v0.59.0, for govulncheck
CI has failed at govulncheck since this morning on every push, the
rewritten tags included: GO-2026-6859, an HTTP/1 server crash in net/http,
is fixed in go1.27.4 and the runner still had 1.27.3. go.mod now names
toolchain go1.27.4, which the go command switches to by itself, and
setup-go checks for the latest patch instead of taking the cached one.

x/crypto goes to v0.59.0 for GO-2026-5932, which the code does not call.
govulncheck now finds nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 18:29:35 +01:00

50 lines
1.6 KiB
YAML

# CI/CD sablonu (kaynak: ilker/altyapi dagitim/sablon). Monorepo: yalnizca hpcod/ icin.
# main'e push ve PR: derle + vet + test + govulncheck + paketle (hpcod/ ya da .gitea/ degisince).
# hpcod-v* tag: ayni adimlar + uretime dagitim (.gitea/dagit.sh -> sunucuda deploy-al).
# Tag hpcod-v1.2.3 -> deploy-al'a surum v1.2.3 gider ("hpcod-" oneki atilir).
name: ci
on:
push:
branches: [main]
tags: ['hpcod-v*']
paths: ['hpcod/**', '.gitea/**']
pull_request:
paths: ['hpcod/**', '.gitea/**']
workflow_dispatch:
jobs:
derle:
runs-on: uygulamalar
defaults:
run:
working-directory: hpcod
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.27.x'
# Without it a runner that already has 1.27.3 keeps using it, and
# govulncheck fails on what 1.27.4 fixed. go.mod's toolchain line
# says the same to the go command itself.
check-latest: true
cache: false # modul ve derleme onbellegi runner birimlerinde (uygulamalar-gomod/gocache)
- name: vet + test
run: |
go vet ./...
go test ./...
- name: govulncheck
run: go run golang.org/x/vuln/cmd/govulncheck@v1.9.0 ./...
- name: paketle
run: ../.gitea/paketle.sh "${GITHUB_REF_NAME}"
- name: dagit
if: startsWith(github.ref, 'refs/tags/hpcod-v')
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
DEPLOY_KNOWN_HOSTS: ${{ vars.DEPLOY_KNOWN_HOSTS }}
run: ../.gitea/dagit.sh paket.tar.gz hpcod "${GITHUB_REF_NAME#hpcod-}" web