Skip to content
Draft
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
53 changes: 53 additions & 0 deletions .github/workflows/build-attest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build + Attest

on:
workflow_dispatch:
release:
types: [published]

permissions:
contents: read
id-token: write
attestations: write

jobs:
build-and-attest:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip

- name: Install build tooling
run: python -m pip install --upgrade pip build

- name: Build distributions
run: python -m build

- name: Upload built distributions
uses: actions/upload-artifact@v4
with:
name: python-dist
path: dist/*
if-no-files-found: error

- name: Generate build provenance attestation
uses: actions/attest@v4
with:
subject-path: "dist/*"

- name: Add verification hint
run: |
{
echo "## Verification"
echo
echo "Verify a downloaded artifact with:"
echo
echo '`gh attestation verify dist/<artifact-file> -R joy7758/agent-evidence`'
} >> "$GITHUB_STEP_SUMMARY"
Loading