From 69b144fcec08311320a4a6b7ba9b93084e7ec201 Mon Sep 17 00:00:00 2001 From: jonmartinstorm <55587306+jonmartinstorm@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:24:54 +0000 Subject: [PATCH 1/2] Initial plan From 228b61ca8402301dfdfe23d2491b840902302ac4 Mon Sep 17 00:00:00 2001 From: jonmartinstorm <55587306+jonmartinstorm@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:27:12 +0000 Subject: [PATCH 2/2] fix(ci): upgrade Go to 1.27.4 and guard Semgrep report upload Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> --- .github/workflows/ci.yml | 4 ++-- AGENTS.md | 2 +- CONTRIBUTING.md | 2 +- Dockerfile | 2 +- README.md | 2 +- go.mod | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e60bfd2..ff45b56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -143,7 +143,7 @@ jobs: # Static analysis plus working-tree secret detection. --error fails the # job on any finding; the SARIF report is written first, so the upload - # step still runs (if: always) and findings reach the Security tab. + # step still runs when a report exists and findings reach the Security tab. - name: Semgrep run: | python3 -m pip install --quiet --user "semgrep==${SEMGREP_VERSION}" @@ -154,7 +154,7 @@ jobs: --config p/owasp-top-ten \ --config p/supply-chain - name: Upload Semgrep SARIF - if: always() + if: ${{ always() && hashFiles('semgrep.sarif') != '' }} uses: github/codeql-action/upload-sarif@v4 with: sarif_file: semgrep.sarif diff --git a/AGENTS.md b/AGENTS.md index 4a619e1..76ebc19 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -14,7 +14,7 @@ a rule here changes. Vigil — Go-based GRC (governance, risk, compliance) toolbox. -Stack: Go 1.27.3+, templ (server-side rendering), sqlc, goose, pgx/v5, htmx, +Stack: Go 1.27.4+, templ (server-side rendering), sqlc, goose, pgx/v5, htmx, Alpine.js (CSP build), Tailwind CSS v4 CLI, air. Authorization is policy-based using embedded OPA Rego. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e6d2761..d3912e0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,7 +19,7 @@ See [SECURITY.md](SECURITY.md) for the disclosure process. ## Development setup -Requirements: Go 1.27.3+, and Docker or Podman. +Requirements: Go 1.27.4+, and Docker or Podman. ```sh git clone https://github.com/3lbits/vigil.git diff --git a/Dockerfile b/Dockerfile index 3c9522e..a24d38f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ # binary, so no target-arch code is ever executed at build time — QEMU emulation # is not needed. Digest pinning still works: the digest points at the manifest # index and $BUILDPLATFORM resolves the host variant from it. -FROM --platform=$BUILDPLATFORM golang:1.27.3-bookworm@sha256:dc0963f32053e4bc451d24d87e3892d42d01021b61f093e98eb95c0352bb84b0 AS builder +FROM --platform=$BUILDPLATFORM golang:1.27.4-bookworm@sha256:4fa7c968ba93f1635670522dbb01a2c78150443e1385746924566079f36570ea AS builder # Prevent Go from auto-downloading a newer toolchain at build time ENV GOTOOLCHAIN=local diff --git a/README.md b/README.md index c8c1fa6..33b219b 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ Rego (`cmd/server/policies/authz.rego`), not hardcoded role checks in handlers. | Layer | Technology | |---|---| -| Backend | Go 1.27.3+ (`net/http`) | +| Backend | Go 1.27.4+ (`net/http`) | | HTML | [templ](https://templ.guide/) | | CSS / JS | Tailwind CSS v4 CLI, htmx, Alpine.js (CSP build) | | Data | PostgreSQL + pgx/v5 + sqlc | diff --git a/go.mod b/go.mod index ae5b172..8f4e770 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module github.com/3lbits/vigil go 1.27 -toolchain go1.27.3 +toolchain go1.27.4 require ( github.com/BurntSushi/toml v1.6.0