diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1d83349..bf5cabf 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -41,16 +41,45 @@ jobs: GOARCH: ${{ matrix.platform.arch }} run: | name="${BINARY}_${TAG}_${GOOS}_${GOARCH}" - CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -X main.version=${TAG}" -o "$name" . - tar -czf "${name}.tar.gz" "$name" + CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -X main.version=${TAG}" -o "$BINARY" . + tar -czf "${name}.tar.gz" "$BINARY" - name: Upload the archive uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: - name: ${{ matrix.platform.os }}-${{ matrix.platform.arch }} + name: archive-${{ matrix.platform.os }}-${{ matrix.platform.arch }} path: ${{ env.BINARY }}_${{ env.TAG }}_${{ matrix.platform.os }}_${{ matrix.platform.arch }}.tar.gz if-no-files-found: error - publish: + packslip: needs: build + permissions: + contents: read + id-token: write + attestations: write + runs-on: ubuntu-26.04 + timeout-minutes: 10 + steps: + - name: Download the archives + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + with: + pattern: archive-* + path: dist + merge-multiple: true + - name: Sign the release manifest + id: packslip + uses: jdx/packslip@e0340e0c1d10c90a434de2b90f3a1ba345923564 # v1.11.4 + with: + artifacts: dist/*.tar.gz + bin: timber + attest: true + upload: false + - name: Upload the bundle + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: packslip + path: ${{ steps.packslip.outputs.bundle }} + if-no-files-found: error + publish: + needs: [build, packslip] permissions: contents: write runs-on: ubuntu-26.04 @@ -70,10 +99,16 @@ jobs: - name: Download the archives uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: + pattern: archive-* path: dist merge-multiple: true - name: Make the checksums run: cd dist && sha256sum -- *.tar.gz > checksums.txt + - name: Download the packslip + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + with: + name: packslip + path: packslip - name: Read the release state id: state run: | @@ -88,6 +123,8 @@ jobs: run: gh release create "$TAG" --verify-tag --draft --generate-notes --title "$TAG" - name: Upload the assets run: gh release upload "$TAG" dist/* --clobber + - name: Upload the packslip + run: gh release upload "$TAG" packslip/packslip.sigstore.json --clobber # GITHUB_TOKEN starts no workflow run, so the app token publishes the # release and starts the tap update. - name: Publish the release diff --git a/README.md b/README.md index 68fd98c..ad37417 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,21 @@ Install using Go, go install github.com/nnutter/timber@latest ``` +Install the latest signed release with packslip, + +```bash +packslip install github.com/nnutter/timber +``` + +or let mise manage it: + +```bash +mise use -g packslip:github.com/nnutter/timber +``` + +The first signed release establishes the packslip signer. +`packslip pin` prints the fingerprint from a downloaded bundle; pass it with `--pin` to fix the signer before the first install. + `timber` requires Git on `PATH`. Install the Pi review extension and `timber-review` skill: diff --git a/mise.lock b/mise.lock index 4d15eff..93ed608 100644 --- a/mise.lock +++ b/mise.lock @@ -50,44 +50,44 @@ url_api = "https://api.github.com/repos/betterleaks/betterleaks/releases/assets/ provenance = "cosign" [[tools."github:nnutter/constable"]] -version = "0.9.2" +version = "0.9.5" backend = "github:nnutter/constable" specifiers = ["latest"] [tools."github:nnutter/constable"."platforms.linux-arm64"] -checksum = "sha256:b0b45ff60f78f1c9d70958a99c572dad2bc7896d88c8110d43b0ed3307da289d" -url = "https://github.com/nnutter/constable/releases/download/v0.9.2/constable_v0.9.2_linux_arm64.tar.gz" -url_api = "https://api.github.com/repos/nnutter/constable/releases/assets/760360939" +checksum = "sha256:41d7f41c35f2f2dd45666c8d7cda986ddccb9aa84ed36b836a4975df66755000" +url = "https://github.com/nnutter/constable/releases/download/v0.9.5/constable_v0.9.5_linux_arm64.tar.gz" +url_api = "https://api.github.com/repos/nnutter/constable/releases/assets/778353518" provenance = "github-attestations" [tools."github:nnutter/constable"."platforms.linux-arm64-musl"] -checksum = "sha256:b0b45ff60f78f1c9d70958a99c572dad2bc7896d88c8110d43b0ed3307da289d" -url = "https://github.com/nnutter/constable/releases/download/v0.9.2/constable_v0.9.2_linux_arm64.tar.gz" -url_api = "https://api.github.com/repos/nnutter/constable/releases/assets/760360939" +checksum = "sha256:41d7f41c35f2f2dd45666c8d7cda986ddccb9aa84ed36b836a4975df66755000" +url = "https://github.com/nnutter/constable/releases/download/v0.9.5/constable_v0.9.5_linux_arm64.tar.gz" +url_api = "https://api.github.com/repos/nnutter/constable/releases/assets/778353518" provenance = "github-attestations" [tools."github:nnutter/constable"."platforms.linux-x64"] -checksum = "sha256:f55f9643c099f8f08eca42a494242ff137896e43d795c387d0f159bae0989339" -url = "https://github.com/nnutter/constable/releases/download/v0.9.2/constable_v0.9.2_linux_amd64.tar.gz" -url_api = "https://api.github.com/repos/nnutter/constable/releases/assets/760360942" +checksum = "sha256:c67522bfa29e0dd5a791c340699719deb2515153b2e4f7b93f7c8fd469cb81a1" +url = "https://github.com/nnutter/constable/releases/download/v0.9.5/constable_v0.9.5_linux_amd64.tar.gz" +url_api = "https://api.github.com/repos/nnutter/constable/releases/assets/778353521" provenance = "github-attestations" [tools."github:nnutter/constable"."platforms.linux-x64-musl"] -checksum = "sha256:f55f9643c099f8f08eca42a494242ff137896e43d795c387d0f159bae0989339" -url = "https://github.com/nnutter/constable/releases/download/v0.9.2/constable_v0.9.2_linux_amd64.tar.gz" -url_api = "https://api.github.com/repos/nnutter/constable/releases/assets/760360942" +checksum = "sha256:c67522bfa29e0dd5a791c340699719deb2515153b2e4f7b93f7c8fd469cb81a1" +url = "https://github.com/nnutter/constable/releases/download/v0.9.5/constable_v0.9.5_linux_amd64.tar.gz" +url_api = "https://api.github.com/repos/nnutter/constable/releases/assets/778353521" provenance = "github-attestations" [tools."github:nnutter/constable"."platforms.macos-arm64"] -checksum = "sha256:2157234e654d9504d0da577b1564a045e38de01d55919d691a6e74e520d03db7" -url = "https://github.com/nnutter/constable/releases/download/v0.9.2/constable_v0.9.2_darwin_arm64.tar.gz" -url_api = "https://api.github.com/repos/nnutter/constable/releases/assets/760360938" +checksum = "sha256:0ad670bc74fb365677a39470eb1bacd8587849d9704a5796a72375db95c90dca" +url = "https://github.com/nnutter/constable/releases/download/v0.9.5/constable_v0.9.5_darwin_arm64.tar.gz" +url_api = "https://api.github.com/repos/nnutter/constable/releases/assets/778353516" provenance = "github-attestations" [tools."github:nnutter/constable"."platforms.macos-x64"] -checksum = "sha256:6a8adaf71be707139ce975fbb7bb88e8bb72e94d12bda2a5d18411463705b332" -url = "https://github.com/nnutter/constable/releases/download/v0.9.2/constable_v0.9.2_darwin_amd64.tar.gz" -url_api = "https://api.github.com/repos/nnutter/constable/releases/assets/760360947" +checksum = "sha256:858a1e95c6ad782425a797bb511a1322ca60ddeee266e492270eedc2afe351a4" +url = "https://github.com/nnutter/constable/releases/download/v0.9.5/constable_v0.9.5_darwin_amd64.tar.gz" +url_api = "https://api.github.com/repos/nnutter/constable/releases/assets/778353512" provenance = "github-attestations" [[tools."github:nnutter/mdlint"]] @@ -374,45 +374,45 @@ specifiers = ["latest"] uv = { path = ".mise/locks/pipx-agentskills-tools/0.9.0", digest = "sha256:49b45405d7acd3fe5570bf3f0a9bfcb9177a19b4bf504348f1be8a4c4abae6fc" } [[tools.pkl]] -version = "0.33.0" +version = "0.33.1" backend = "aqua:apple/pkl" specifiers = ["latest"] [tools.pkl."platforms.linux-arm64"] -checksum = "sha256:edcea361402ecab0f3a93f86b1a896c41d00a9241f4962f70278254b08fbd26d" +checksum = "sha256:4a752096dab13d7432e1f0a4f1219833df95e1e36ce0b8d424b0edb2cd5436f9" checksum_source = "mise-versions" -url = "https://github.com/apple/pkl/releases/download/0.33.0/pkl-linux-aarch64" -url_api = "https://api.github.com/repos/apple/pkl/releases/assets/714756970" +url = "https://github.com/apple/pkl/releases/download/0.33.1/pkl-linux-aarch64" +url_api = "https://api.github.com/repos/apple/pkl/releases/assets/764390162" [tools.pkl."platforms.linux-arm64-musl"] -checksum = "sha256:edcea361402ecab0f3a93f86b1a896c41d00a9241f4962f70278254b08fbd26d" +checksum = "sha256:4a752096dab13d7432e1f0a4f1219833df95e1e36ce0b8d424b0edb2cd5436f9" checksum_source = "mise-versions" -url = "https://github.com/apple/pkl/releases/download/0.33.0/pkl-linux-aarch64" -url_api = "https://api.github.com/repos/apple/pkl/releases/assets/714756970" +url = "https://github.com/apple/pkl/releases/download/0.33.1/pkl-linux-aarch64" +url_api = "https://api.github.com/repos/apple/pkl/releases/assets/764390162" [tools.pkl."platforms.linux-x64"] -checksum = "sha256:b9a6ddea6b382b7d4db4cf78e77aa3858e0c8a7e02939d2ba298574b5d1fcc69" +checksum = "sha256:acbca9bb4f31139d09e295d03c9fb25f77edf5a74af4e772b56b32dc6dc17c44" checksum_source = "mise-versions" -url = "https://github.com/apple/pkl/releases/download/0.33.0/pkl-linux-amd64" -url_api = "https://api.github.com/repos/apple/pkl/releases/assets/714756975" +url = "https://github.com/apple/pkl/releases/download/0.33.1/pkl-linux-amd64" +url_api = "https://api.github.com/repos/apple/pkl/releases/assets/764390166" [tools.pkl."platforms.linux-x64-musl"] -checksum = "sha256:b9a6ddea6b382b7d4db4cf78e77aa3858e0c8a7e02939d2ba298574b5d1fcc69" +checksum = "sha256:acbca9bb4f31139d09e295d03c9fb25f77edf5a74af4e772b56b32dc6dc17c44" checksum_source = "mise-versions" -url = "https://github.com/apple/pkl/releases/download/0.33.0/pkl-linux-amd64" -url_api = "https://api.github.com/repos/apple/pkl/releases/assets/714756975" +url = "https://github.com/apple/pkl/releases/download/0.33.1/pkl-linux-amd64" +url_api = "https://api.github.com/repos/apple/pkl/releases/assets/764390166" [tools.pkl."platforms.macos-arm64"] -checksum = "sha256:e39c157df0f00a35d34b46270a768784edcaf509aafbf743849b27b4c83ef83b" +checksum = "sha256:6f93ddf6524a5771bd4b6ebde11010c6dfee8e3a8906ffebaa8f52f8a0ba16b7" checksum_source = "mise-versions" -url = "https://github.com/apple/pkl/releases/download/0.33.0/pkl-macos-aarch64" -url_api = "https://api.github.com/repos/apple/pkl/releases/assets/714757040" +url = "https://github.com/apple/pkl/releases/download/0.33.1/pkl-macos-aarch64" +url_api = "https://api.github.com/repos/apple/pkl/releases/assets/764390310" [tools.pkl."platforms.windows-x64"] -checksum = "sha256:9875af0d17d3535ed0e3903f3ae71fc8007268949328f73c2d12942fca11840c" +checksum = "sha256:b1da686befc4ce4d92fe81bd2892e7457a505328313380010c4791c7f68d7432" checksum_source = "mise-versions" -url = "https://github.com/apple/pkl/releases/download/0.33.0/pkl-windows-amd64.exe" -url_api = "https://api.github.com/repos/apple/pkl/releases/assets/714757051" +url = "https://github.com/apple/pkl/releases/download/0.33.1/pkl-windows-amd64.exe" +url_api = "https://api.github.com/repos/apple/pkl/releases/assets/764390372" [[tools.python]] version = "3.14.10" diff --git a/mise.toml b/mise.toml index bc35b6a..a5f6864 100644 --- a/mise.toml +++ b/mise.toml @@ -1,6 +1,3 @@ -[settings] -minimum_release_age = "0" - [tools] jactionlint = "latest" # constable embeds the errcheck, sumtype, testifylint, and nilaway analyzers, diff --git a/skills/timber/SKILL.md b/skills/timber/SKILL.md index afd7272..cac647d 100644 --- a/skills/timber/SKILL.md +++ b/skills/timber/SKILL.md @@ -21,7 +21,7 @@ For detailed checklist editing, use the separate `timber-todo` skill. ## Prerequisites and configuration - `timber` and Git must be on `PATH`. - Install Timber with `go install github.com/nnutter/timber@latest` (requires a compatible Go toolchain; see the repository's `go.mod`). + Install Timber with `go install github.com/nnutter/timber@latest` (requires a compatible Go toolchain; see the repository's `go.mod`), or from a signed release with `packslip install github.com/nnutter/timber` (mise: `mise use -g packslip:github.com/nnutter/timber`). Verify with `timber --help`. - Remote registration and worktree creation need access to the origin; creation fetches origin even when reusing an existing local branch. Use the user's existing Git authentication.