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 <noreply@anthropic.com>
dev
diffwireauto 18 hours ago committed by Strycher
parent b810d3c13d
commit 0911ef1385

@ -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

Loading…
Cancel
Save

Powered by TurnKey Linux.