GitHub Action for claiming anonymous headless.ly tenants via GitHub identity.
Uses GitHub Actions OIDC tokens for authentication — no PATs or secrets required.
name: Claim headless.ly tenant
on:
push:
branches: [main, master]
permissions:
id-token: write
contents: read
jobs:
claim:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dot-org-ai/id@v1
with:
tenant: 'clm_your_claim_token'- An agent provisions an anonymous sandbox via
id.org.ai provision - The agent runs
id.org.ai claimwhich generates this workflow and pushes it - On push, the GitHub App webhook claims the tenant immediately
- This action confirms the claim via OIDC and writes tenant config to
.headless.ly/tenant.json
| Input | Description | Required |
|---|---|---|
tenant |
Claim token from provisioning (clm_*) |
Yes |
sync-keys |
Sync agent public keys to .headless.ly/agents/*.pub |
No (default: false) |
| Output | Description |
|---|---|
tenant-id |
The claimed tenant ID |
level |
Capability level after claiming (typically 2) |
claimed |
Whether the claim succeeded (true/false) |
- Workflow must have
permissions: { id-token: write }for OIDC - The id.org.ai GitHub App must be installed on the repository
MIT