diff --git a/.github/dependabot.yml b/.github/dependabot.yml index ed8c79b..a4a1620 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,6 @@ +# Grouped so a repository gets a few update PRs a month instead of one per package or action (LESSONS L61): +# library updates in one weekly PR for minor and patch versions (majors stay separate, they need review), and +# every GitHub Actions update in one monthly PR. version: 2 updates: - package-ecosystem: "gomod" @@ -6,9 +9,18 @@ updates: interval: "weekly" commit-message: prefix: "chore(deps)" + groups: + minor-and-patch: + update-types: + - "minor" + - "patch" - package-ecosystem: "github-actions" directory: "/" schedule: - interval: "weekly" + interval: "monthly" commit-message: prefix: "ci(deps)" + groups: + github-actions: + patterns: + - "*" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 471c0f0..3cff982 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,6 @@ -# Thin wrapper around the local gates (scripts/check). The gates themselves live in the repo; -# this workflow only re-runs them. Every job is skipped while the repository is private. +# CI for this repository lives in Trysac/factory-ci (reusable workflow, go): it re-runs this repository's own +# gates. Changing the factory's CI is one release there, not one pull request per repository. +# Factory-owned file: agents must not edit it. name: CI on: @@ -15,57 +16,6 @@ concurrency: cancel-in-progress: true jobs: - gates: - if: ${{ !github.event.repository.private }} - name: gates (${{ matrix.os }}) - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest, windows-latest] - env: - # gitleaks runs in its own job below with the official action. - FABRICA_ALLOW_MISSING_GITLEAKS: "1" - steps: - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 - with: - go-version: stable - - run: go mod download - - run: go run ./scripts/check - - # CI-only tier: the full suite, including the tests tagged conformance (external tools or downloads). - # The gates job above runs exactly the local tier, so its coverage is the one the factory measured. - conformance: - if: ${{ !github.event.repository.private }} - name: conformance (full suite) - runs-on: ubuntu-latest - env: - FABRICA_ALLOW_MISSING_GITLEAKS: "1" - FABRICA_CI: "1" - steps: - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 - with: - go-version: stable - - run: go mod download - # Optional, project-provided tool installation for the conformance tier. Only CI runs it, never - # the factory or the local gates. Downloads must be verified against a pinned SHA-256. - - name: conformance tools (ci/conformance-setup.sh, optional) - shell: bash - run: | - if [ -f ci/conformance-setup.sh ]; then bash ci/conformance-setup.sh; else echo "no ci/conformance-setup.sh"; fi - - run: go run ./scripts/check - - secrets: - if: ${{ !github.event.repository.private }} - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - with: - fetch-depth: 0 - - uses: gitleaks/gitleaks-action@ff98106e4c7b2bc287b24eaf42907196329070c7 # v2.3.9 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # Only needed if the repository belongs to a GitHub organization (free for personal accounts). - GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }} + ci: + uses: Trysac/factory-ci/.github/workflows/go.yml@v1 + secrets: inherit