# PREPARED ONLY. Copy to .github/workflows/enzan-receipt.yml after maintainer approval. # Five-minute guide: docs/developer-preview/MAINTAINER-POLICY.md # Public inputs must already exist in the trusted base commit; see the guide. # Requires approved private-Action sharing or a future public release. # A maintainer must classify every PR and review its exact head association. # Unlabelled/skipped is NOT proof of human authorship or verified agent work. name: Enzan agent receipt on: pull_request: types: [opened, reopened, synchronize, ready_for_review, labeled, unlabeled] permissions: contents: read jobs: receipt: if: contains(github.event.pull_request.labels.*.name, 'agent-assisted') runs-on: ubuntu-latest timeout-minutes: 10 steps: # Trusted BASE inputs only. No proposed PR code is checked out or executed. - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: ref: ${{ github.event.pull_request.base.sha }} persist-credentials: false - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version: 22.23.4 - name: Check the maintainer-selected receipt uses: Enzan22/enzan/.github/actions/pr-submission-receipt@6872c26a901df7a26f60a7a1c7c3faa27fa7b3fc with: receipt: .enzan/agent-prs/${{ github.event.pull_request.number }}/receipt.raw trust: .enzan/issuer-trust.json context: .enzan/agent-prs/${{ github.event.pull_request.number }}/expected-publication.json # Green means selected receipt integrity; PR binding remains NOT_ESTABLISHED. # No issuance, signing, automatic merge, privileged token or PR code step.