Skip to content

Deploy Tag

Deploy Tag #60

Workflow file for this run

# 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:

Check failure on line 56 in .github/workflows/deploy-tag.yml

View workflow run for this annotation

GitHub Actions / Deploy Tag

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-tag.yml (Line: 56, Col: 3): Error calling workflow 'slsa-framework/slsa-github-generator/.github/workflows/[email protected]'. The nested job 'upload-assets' is requesting 'contents: write', but is only allowed 'contents: read'.
name: Generate SLSA provenance attestation
needs: attest
permissions:
contents: read
id-token: write
actions: read
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
with:
base64-subjects-as-file: "${{ needs.attest.outputs.base64-subjects }}"