From ca765c0af5a9ab725b86c60223e79dcdc852b0f7 Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Thu, 13 Aug 2026 13:31:29 +0900 Subject: [PATCH 1/2] chore: Attest build provenance so users can verify release artifacts --- .github/workflows/release.yml | 6 ++++++ README.md | 14 ++++++++++++++ README_ja.md | 14 ++++++++++++++ 3 files changed, 34 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 999be32..4c0734d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,7 +49,9 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 permissions: + attestations: write contents: write + id-token: write steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -77,6 +79,10 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAP_GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} + - name: Attest build provenance + uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2 + with: + subject-checksums: ./dist/github-nippou_${{ needs.tagpr.outputs.tagpr-tag }}_checksums.txt pushover: name: pushover if failure if: failure() diff --git a/README.md b/README.md index 697c9cf..5ea77e4 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,20 @@ $ make $ ./github-nippou ``` +### Verifying a release archive + +A [build provenance attestation](https://docs.github.com/en/actions/how-tos/secure-your-work/use-artifact-attestations/use-artifact-attestations) is issued for each archive at release time. To check that an archive really was built by this repository's release workflow: + +``` +$ gh attestation verify github-nippou___.zip \ + --repo masutaka/github-nippou \ + --signer-workflow masutaka/github-nippou/.github/workflows/release.yml +``` + +Issued attestations are listed on this repository's [Attestations](https://github.com/masutaka/github-nippou/attestations) page. + +`brew install` does not run this check, so verify manually if you need it. + ## Setup $ github-nippou init diff --git a/README_ja.md b/README_ja.md index 497d422..b707455 100644 --- a/README_ja.md +++ b/README_ja.md @@ -44,6 +44,20 @@ $ make $ ./github-nippou ``` +### リリースアーカイブの検証 + +リリース時に、各アーカイブの [build provenance attestation](https://docs.github.com/ja/actions/how-tos/secure-your-work/use-artifact-attestations/use-artifact-attestations) を発行しています。次のコマンドで、アーカイブがこのリポジトリのリリースワークフローでビルドされたものか検証できます: + +``` +$ gh attestation verify github-nippou___.zip \ + --repo masutaka/github-nippou \ + --signer-workflow masutaka/github-nippou/.github/workflows/release.yml +``` + +発行済みの attestation は、このリポジトリの [Attestations](https://github.com/masutaka/github-nippou/attestations) ページで一覧できます。 + +`brew install` はこの検証を行わないため、必要であれば手動で実行してください。 + ## セットアップ $ github-nippou init From b7fcd9882b9c139405d8ca696a2552a48702b929 Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Thu, 13 Aug 2026 13:31:32 +0900 Subject: [PATCH 2/2] docs: Point Japanese README at the Japanese GitHub Docs --- README_ja.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README_ja.md b/README_ja.md index b707455..b6c2cf7 100644 --- a/README_ja.md +++ b/README_ja.md @@ -151,13 +151,13 @@ $ github-nippou ## 制限事項と遅延 -github-nippou は GitHub の [List events for the authenticated user](https://docs.github.com/en/rest/activity/events?apiVersion=2026-03-10#list-events-for-the-authenticated-user) API を使用しています。 +github-nippou は GitHub の [List events for the authenticated user](https://docs.github.com/ja/rest/activity/events?apiVersion=2026-03-10#list-events-for-the-authenticated-user) API を使用しています。 > This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. 上記の通り、取得されるイベントには 30 秒から 6 時間の遅延が生じる場合があります。 -:link: [REST API endpoints for events \- GitHub Docs](https://docs.github.com/en/rest/activity/events?apiVersion=2026-03-10) +:link: [REST API endpoints for events \- GitHub Docs](https://docs.github.com/ja/rest/activity/events?apiVersion=2026-03-10) > Only events created within the past 30 days will be included. Events older than 30 days will not be included (even if the total number of events in the timeline is less than 300).