ci: run jobs in Debian trixie (git 2.47+) — sha256 git object format needs git >= 2.42
Some checks failed
validate / Rego (opa fmt + opa test) (push) Failing after 13s
validate / JSON Schema (ajv) (push) Failing after 46s

This commit is contained in:
CTO Agent 2026-10-25 15:36:59 +00:00
parent 1d4eccb6d3
commit 0a3ae36bf1

View file

@ -5,17 +5,23 @@ on:
pull_request:
branches: [main]
# The repository uses the sha256 git object format. Git < 2.42 cannot speak
# the sha256 wire protocol, so we must run the job in a container whose Debian
# base has a recent-enough git (bookworm ships 2.39, trixie ships 2.47+).
jobs:
json-schema:
name: JSON Schema (ajv)
runs-on: ubuntu-latest
container:
image: node:24-trixie-slim
steps:
- name: Install prerequisites in container
- name: Install git + curl in container
run: |
set -euo pipefail
command -v curl >/dev/null || { apt-get update && apt-get install -y curl ca-certificates; }
apt-get update
apt-get install -y --no-install-recommends git curl ca-certificates
git --version
node --version
npm --version
- name: Checkout
uses: actions/checkout@v4
@ -61,11 +67,15 @@ jobs:
rego:
name: Rego (opa fmt + opa test)
runs-on: ubuntu-latest
container:
image: debian:trixie-slim
steps:
- name: Install prerequisites in container
- name: Install git + curl in container
run: |
set -euo pipefail
command -v curl >/dev/null || { apt-get update && apt-get install -y curl ca-certificates; }
apt-get update
apt-get install -y --no-install-recommends git curl ca-certificates
git --version
- name: Checkout
uses: actions/checkout@v4