From 0911ef1385bc242bbfe7f674b289af3ddc58505b Mon Sep 17 00:00:00 2001 From: diffwireauto <330573775+diffwireauto@users.noreply.github.com> Date: Mon, 23 Nov 2026 22:58:43 -0500 Subject: [PATCH] feat(#1087): record the release AAB's provenance The android job in release-signed.yml now attests app-release.aab with actions/attest-build-provenance, after the certificate check. The publish workflow sends only a bundle this record vouches for: built by release-signed.yml, at this tag's commit, on a GitHub-hosted runner. The job gains id-token: write and attestations: write for that step, and restates contents: read because job permissions replace the workflow's. Google refuses this job's token: the A2 condition requires the play-release environment and play-publish.yml. Tests: test_workflows.py checks the step names the AAB and the job holds the permissions. Pointing the step at the APK fails the test. Agent: JadeEagle (session e9df9ed6) Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release-signed.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/release-signed.yml b/.github/workflows/release-signed.yml index 689237f0..89b64513 100644 --- a/.github/workflows/release-signed.yml +++ b/.github/workflows/release-signed.yml @@ -51,6 +51,13 @@ jobs: needs: gate runs-on: ubuntu-latest environment: release-signing # required-reviewer gate; do not remove + # id-token and attestations are only for the AAB's provenance record + # (#1087). Google refuses this job's token: its condition requires the + # play-release environment and play-publish.yml (#1085). + permissions: + contents: read + id-token: write + attestations: write steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 @@ -174,6 +181,13 @@ jobs: fi echo "AAB signing certificate verified: ${AAB_SHA}" + # play-publish.yml sends only a bundle this record vouches for: built by + # this workflow, at this tag, on a GitHub-hosted runner (#1087). + - name: Record the AAB's provenance + uses: actions/attest-build-provenance@v2 + with: + subject-path: build/app/outputs/bundle/release/app-release.aab + - name: Stage signed artifacts run: | mkdir -p dist