Skip to content

Commit 92212aa

Browse files
clubandersonclaude
andcommitted
🌱 Standardize governance workflows, pre-commit, and remove legacy CI
Consolidated PR replacing llm-d#616 and llm-d#617. Governance & tooling standardization: - Simplify all governance workflows to use reusable patterns - Add .pre-commit-config.yaml with standard hooks - Update Dockerfiles and Makefile.tools.mk - Update go.mod/go.sum dependencies - Standardize test imports Legacy CI cleanup: - Remove check-typos.yaml and md-link-check.yml (replaced by pre-commit) - Remove orphaned .lychee.toml and .typos.toml configs Agentic workflows: - Add typo-checker, link-checker, and upstream-monitor agentic workflows - Add copilot-setup-steps and actions-lock config - Add upstream-versions tracking doc Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Andrew Anderson <andy@clubanderson.com>
1 parent 5c89823 commit 92212aa

34 files changed

+3733
-258
lines changed

‎.gitattributes‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.github/workflows/*.lock.yml linguist-generated=true merge=ours
2+
.github/workflows/*.campaign.g.md linguist-generated=true merge=ours
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"entries": {
3+
"actions/github-script@v8": {
4+
"repo": "actions/github-script",
5+
"version": "v8",
6+
"sha": "ed597411d8f924073f98dfc5c65a23a2325f34cd"
7+
},
8+
"github/gh-aw/actions/setup@v0.45.0": {
9+
"repo": "github/gh-aw/actions/setup",
10+
"version": "v0.45.0",
11+
"sha": "58d1d157fbac0f1204798500faefc4f7461ebe28"
12+
}
13+
}
14+
}

‎.github/workflows/check-typos.yaml‎

Lines changed: 0 additions & 17 deletions
This file was deleted.

‎.github/workflows/ci-pr-checks.yaml‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,13 @@ jobs:
4040
- name: Checkout source
4141
uses: actions/checkout@v6
4242

43-
- name: Sanity check repo contents
44-
run: ls -la
43+
- name: Set up Python (for pre-commit and CGO)
44+
uses: actions/setup-python@v5
45+
with:
46+
python-version: '3.12'
47+
48+
- name: Run pre-commit checks
49+
uses: pre-commit/action@v3.0.1
4550

4651
- name: Extract Go version from go.mod
4752
run: sed -En 's/^go (.*)$/GO_VERSION=\1/p' go.mod >> $GITHUB_ENV
@@ -71,7 +76,7 @@ jobs:
7176
- name: Run lint checks
7277
uses: golangci/golangci-lint-action@v9
7378
with:
74-
version: "v2.8.0"
79+
version: "v2.1.6"
7580
args: "--config=./.golangci.yml"
7681
skip-cache: true
7782
env:
Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
1-
name: Check Signed Commits in PR
2-
3-
on:
4-
pull_request_target:
1+
name: Check Signed Commits
2+
on: pull_request_target
53

64
jobs:
7-
check-signed-commits:
8-
name: Check signed commits in PR
9-
runs-on: ubuntu-latest
5+
signed-commits:
6+
uses: llm-d/llm-d-infra/.github/workflows/reusable-signed-commits.yml@main
107
permissions:
118
contents: read
12-
pull-requests: write # Required to post comments on PRs
13-
steps:
14-
- name: Check signed commits in PR
15-
uses: 1Password/check-signed-commits-action@v1 # Use the action
16-
with:
17-
comment: |
18-
🚨 Unsigned commits detected! Please sign your commits.
19-
20-
For instructions on how to set up GPG/SSH signing and verify your commits, please see [GitHub Documentation](https://docs.github.com/en/authentication/managing-commit-signature-verification).
9+
pull-requests: write
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Copilot Setup Steps"
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- .github/workflows/copilot-setup-steps.yml
8+
9+
jobs:
10+
copilot-setup-steps:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
steps:
15+
- name: Install gh-aw extension
16+
run: |
17+
curl -fsSL https://raw.githubusercontent.com/githubnext/gh-aw/refs/heads/main/install-gh-aw.sh | bash
18+
19+
- name: Verify gh-aw installation
20+
run: gh aw version

0 commit comments

Comments
 (0)