From 98a0c4e47afc1d442700cce8b69f2edc30ceff9a Mon Sep 17 00:00:00 2001 From: jrfnl Date: Thu, 12 Dec 2024 09:04:31 +0100 Subject: [PATCH] GH Actions/verify-release: show output for release attestations Apparently, by default, the GH CLI doesn't show any output when run from a GH Actions step. This can be confusing and it makes debugging the workflow harder as, in case of failure, it is unclear what the step failed on. The `GH_FORCE_TTY` environment variable (set to any value) should enable the normal output for the GH CLI command, which should fix this. Refs: * https://github.com/cli/cli/issues/10047 * https://cli.github.com/manual/gh_help_environment --- .github/workflows/verify-release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/verify-release.yml b/.github/workflows/verify-release.yml index 99f611526a..7dcfac8fda 100644 --- a/.github/workflows/verify-release.yml +++ b/.github/workflows/verify-release.yml @@ -92,6 +92,7 @@ jobs: run: gh attestation verify ${{ steps.source.outputs.FILE }} -o PHPCSStandards env: GH_TOKEN: ${{ github.token }} + GH_FORCE_TTY: true - name: Download public key env: @@ -183,6 +184,7 @@ jobs: run: gh attestation verify ./tools/${{ matrix.pharfile }} -o PHPCSStandards env: GH_TOKEN: ${{ github.token }} + GH_FORCE_TTY: true # Note: the `.` is in the command to make it work for both PHPCS as well PHPCBF. - name: Verify the PHAR is nominally functional