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
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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()
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_<version>_<os>_<arch>.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
Expand Down
18 changes: 16 additions & 2 deletions README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_<version>_<os>_<arch>.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
Expand Down Expand Up @@ -137,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).

Expand Down