Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
fc722b3
fix(sendRequest): handle nil GetBody, close response on retry, and co…
Mar 10, 2026
99222ee
test: use closed localhost port for deterministic network-error test
Mar 10, 2026
a51743d
docs: add copilot instructions and docker-only + atomic commits guidance
Mar 10, 2026
ef542d1
refactor: pre-read request body when GetBody missing; improve retry d…
Mar 10, 2026
2d68217
fix(gosec): guard uint64<->int64 conversions for MAX_BODY_SIZE displa…
Mar 10, 2026
022aa68
fix(gosec): remove unused math import
Mar 10, 2026
98b1b33
fix(gosec): guard uint64->int64 conversion for MAX_BODY_SIZE
Mar 10, 2026
0a7c369
fix(gosec): validate target URLs and annotate jitter/client.Do for gosec
Mar 10, 2026
cee4a3a
fix(gosec): suppress SSRF warning at request creation, use http.Serve…
Mar 10, 2026
ec50d4e
fix(gosec): avoid log injection and handle encoder/close errors
Mar 10, 2026
4517c31
fix(gosec): avoid log injection and handle Close/Encode errors
Mar 10, 2026
f0f36b0
fix: remove deprecated rand.Seed, min func shadow, net.Error.Temporary()
Apr 5, 2026
36373ca
perf/fix: cache startup config; record bodySize for all body paths; r…
Apr 5, 2026
508ae88
feat: X-Request-ID correlation; latency_seconds encoding; truncation …
Apr 5, 2026
376d87c
fix: implement -healthcheck flag; move flag handling before server setup
Apr 5, 2026
1c4b628
test: adapt tests for cached config vars; restore maxRetries global s…
Apr 5, 2026
3c1c06f
ci: enforce lint/vet gate; add gosec scan to binary-release workflow
Apr 5, 2026
3cc5924
fix: address Copilot review comments
Apr 5, 2026
d050b23
chore: merge main (Dependabot action bumps)
Apr 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/binary-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ jobs:
run: |
go mod download
go test -v ./...


- name: Security scan (gosec)
run: |
docker run --rm -v ${{ github.workspace }}:/src -w /src securego/gosec:v2.22.4 gosec ./...

- name: Build for multiple platforms
run: |
mkdir -p dist
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for proper versioning

Expand All @@ -49,40 +49,41 @@ jobs:
echo "TIMESTAMP=$(date -u +%Y-%m-%dT%H:%M:%SZ)" >> $GITHUB_ENV

- name: Set up Go
uses: actions/setup-go@v6
uses: actions/setup-go@v5
with:
go-version: '1.24'

- name: Static analysis (gofmt, go vet)
run: |
docker run --rm -v ${{ github.workspace }}:/src -w /src golang:1.24 sh -c "gofmt -l . || true; go vet ./... || true"
docker run --rm -v ${{ github.workspace }}:/src -w /src golang:1.24 sh -c \
'GOFMT_OUT=$(gofmt -l .); [ -z "$GOFMT_OUT" ] || (echo "$GOFMT_OUT"; exit 1); go vet ./...'

- name: Security scan (gosec)
run: |
docker run --rm -v ${{ github.workspace }}:/src -w /src securego/gosec:latest gosec ./...
docker run --rm -v ${{ github.workspace }}:/src -w /src securego/gosec:v2.22.4 gosec ./...

- name: Run unit tests (inside Docker)
run: |
docker run --rm -v ${{ github.workspace }}:/src -w /src golang:1.24 go test -v -race ./...

- name: Set up QEMU
uses: docker/setup-qemu-action@v4
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
uses: docker/setup-buildx-action@v3

- name: Log in to the Container registry
# Only login when we'll be pushing (main branch or tags, never on PR)
if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) && github.event_name != 'pull_request'
uses: docker/login-action@v4
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v6
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
Expand All @@ -95,7 +96,7 @@ jobs:
type=sha,prefix=,suffix=,format=short

- name: Build and push Docker image
uses: docker/build-push-action@v7
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
Expand Down
Loading
Loading