pohi-action
v0.1.0
Published
GitHub Action for PoHI human approval verification
Maintainers
Readme
pohi-action
GitHub Action for PoHI human approval verification.
Usage
name: Require Human Approval
on:
pull_request:
types: [labeled]
jobs:
verify:
if: github.event.label.name == 'ready-to-merge'
runs-on: ubuntu-latest
steps:
- uses: pohi-protocol/action@v1
with:
world-id-app: ${{ secrets.WORLD_ID_APP_ID }}
required-level: orbInputs
| Input | Description | Required | Default |
|-------|-------------|----------|---------|
| world-id-app | World ID App ID | Yes | - |
| required-level | Minimum verification level (device or orb) | No | device |
| timeout | Timeout in seconds for approval | No | 300 |
Outputs
| Output | Description |
|--------|-------------|
| attestation | JSON attestation data |
| attestation-hash | SHA-256 hash of the attestation |
How It Works
- Action creates approval request for the PR/commit
- Displays World ID QR code in PR comment
- Waits for human verification via World App
- Records attestation and updates PR status
License
MIT
