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/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
runs-on: ubuntu-26.04
permissions:
contents: write
id-token: write
attestations: write
steps:
- uses: actions/checkout@v7
- uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3
Expand All @@ -26,6 +28,10 @@ jobs:
- name: Build Artifact
run: |
just compile "${{ github.event.inputs.tag }}"
- name: Attest Build Provenance
uses: actions/attest@v4.2.2
with:
subject-path: '.bin/onlylogins'
- uses: actions/upload-artifact@v7
with:
name: "onlylogins"
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,26 @@ as a reference for setting up configuration. Before you host on an
ARM64 instance, note that the [argon2](https://cs.opensource.google/go/x/crypto/+/refs/tags/v0.59.0:argon2/)
crypto package is optimized only for AMD64.

#### Verifying a Release

Release binaries are signed with a SLSA build provenance attestation, generated
by the `actions/attest` GitHub Action and stored against this repository. The
attestation records the exact commit and workflow that produced the binary, so
you can confirm the file you downloaded is the one built by our release pipeline.

Use the [GitHub CLI](https://cli.github.com) to verify a downloaded binary:

```shell
gh attestation verify --repo cattlecloud/onlylogins ./onlylogins
```

`gh` checks the file's SHA256 digest against the attestation stored for the
repository, so the filename does not need to match the release asset. The
command succeeds when the binary matches an attestation produced from this
repository.

#### Running

Launch the agent specifying the `agent` subcommand with the path
to your configuration file.

Expand Down