Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 3 additions & 7 deletions .github/PULL_REQUEST_TEMPLATE/knowledge-sync.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<!-- A sidecar sync. The lines above this template are the sync's: the release, the files it changed and the pin. The workflow leaves the sidecar's checks to this pull request's own checks; a sync opened by hand with .lokf/scripts/knowledge-sync.sh --pr <tag> writes its check lines above too. -->
<!-- A sidecar sync. The lines above are the sync's report: the release, the files it changed and the pin. -->

## Reviewer checklist

- [ ] The diff touches only the sidecar's copies, the site's copies, `.lokf/pyproject.toml`, `.lokf/uv.lock` and `CHANGELOG.md`.
- [ ] `.lokf/pyproject.toml` changes on the `ktl` line alone, to the release, and `.lokf/uv.lock` on the `ktl` entry alone.
- [ ] Any workflow changes held above are read and applied on this branch, or left for the next sync on purpose.
- [ ] You read the [release notes of Knowledge Trust Ladder](https://w3id.org/ktl/changelog/) for a step the sync cannot do, such as setting a new variable or secret. If there is one, you do it in this pull request or straight after the merge.
- [ ] Where the gate fails on a convention the release adds or tightens, such as rule 16's one `excerpt` for each source `id`, the bundle is fixed through the pen in a pull request of its own, and this one runs again once that merges.
- [ ] `CHANGELOG.md` has the entry under `## [Unreleased]` and `### Security`, and the title carries `security(sidecar):`, so the merge releases.
- [ ] The diff changes only the sidecar's copies, the site's copies, the `ktl` pin and its lock, and `CHANGELOG.md`.
- [ ] Any workflow changes held above are read and applied on this branch.
16 changes: 15 additions & 1 deletion .github/workflows/knowledge-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ jobs:
with:
egress-policy: audit

# The input is held to the shape of a tag before anything names a ref by it.
- name: Check the tag is a release tag
run: |
if [[ ! "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "::error::'$TAG' is not vMAJOR.MINOR.PATCH."
exit 1
fi

# The bundle as it stood at the tag, not at the branch head.
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand Down Expand Up @@ -643,5 +651,11 @@ jobs:
GH_REPO: ${{ github.repository }}
run: |
shopt -s nullglob
gh release upload "$TAG" ./*.zip ./*.yaml ./*.tsv ./*.sha256 ./*.intoto.jsonl --clobber
# gh retries a slow upload itself, and a retry of one that reached
# GitHub fails with "already exists"; --clobber makes a new attempt safe.
for attempt in 1 2 3; do
gh release upload "$TAG" ./*.zip ./*.yaml ./*.tsv ./*.sha256 ./*.intoto.jsonl --clobber && exit 0
[ "$attempt" = 3 ] || { echo "::warning::The upload to $TAG failed (attempt $attempt); trying again."; sleep 15; }
done
exit 1
working-directory: ${{ runner.temp }}/release
548 changes: 65 additions & 483 deletions .github/workflows/knowledge-sync.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .lokf/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description = "LOKF knowledge-bundle tooling for SLSA."
# Keep in sync with the `lokf` toolkit's own requires-python floor.
requires-python = ">=3.11"
dependencies = [
"ktl==0.70.1",
"ktl==0.70.3",
"lokf[build]>=0.9.0",
"rust-just==1.59.0",
]
Expand Down
343 changes: 336 additions & 7 deletions .lokf/scripts/knowledge-sync.sh

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions .lokf/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The `v0.1.0` tag is a baseline, not a release: it marks where versioning starts

## [Unreleased]

### Security

- **The sidecar copies and the skills pin are at Knowledge Trust Ladder [v0.70.3](https://github.com/noelmcloughlin/knowledge-trust-ladder/compare/v0.70.1...v0.70.3).** The release changed `.github/PULL_REQUEST_TEMPLATE/knowledge-sync.md` and `.lokf/scripts/knowledge-sync.sh` here. The sync also wrote the template over a local edit of `.github/workflows/knowledge-release.yaml` and `.github/workflows/knowledge-sync.yaml`.

## [0.11.5] - 2026-11-19

### Security
Expand Down
Loading