Looks like we need to perform the SLSA attestation ourselves. #55
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow | |
name: Deploy Tag | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
inputs: | |
version: | |
required: true | |
type: string | |
description: The version number of the release | |
concurrency: WordPress.org | |
permissions: | |
attestations: write | |
contents: read | |
id-token: write | |
issues: write | |
jobs: | |
deploy: | |
name: Deploy Tag | |
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-deploy-tag.yml@trunk | |
permissions: | |
contents: read | |
issues: write | |
with: | |
deploy: ${{ github.event_name != 'workflow_dispatch' }} | |
plugin: query-monitor | |
readme: readme.txt | |
version: ${{ github.event_name != 'workflow_dispatch' && github.event.release.tag_name || github.event.inputs.version }} | |
secrets: | |
WPORG_SVN_USERNAME: ${{ secrets.WPORG_SVN_USERNAME }} | |
WPORG_SVN_PASSWORD: ${{ secrets.WPORG_SVN_PASSWORD }} | |
attest: | |
name: Generate attestation | |
runs-on: ubuntu-latest | |
permissions: | |
attestations: write | |
contents: read | |
id-token: write | |
timeout-minutes: 70 | |
needs: deploy | |
outputs: | |
base64-subjects: ${{ steps.attest.outputs.base64-subjects }} | |
steps: | |
- name: Attest | |
id: attest | |
uses: johnbillion/action-wordpress-plugin-attestation@slsa | |
with: | |
version: ${{ needs.deploy.outputs.version }} | |
zip-path: ${{ needs.deploy.outputs.zip-path }} | |
dry-run: true | |
slsa: | |
name: Generate SLSA provenance attestation | |
runs-on: ubuntu-latest | |
needs: attest | |
permissions: | |
attestations: write | |
contents: read | |
id-token: write | |
steps: | |
- name: Generate | |
if: ${{ inputs.dry-run == 'false' }} | |
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected] | |
with: | |
base64-subjects-as-file: "${{ needs.attest.outputs.base64-subjects }}" |