Skip to content

Commit 98a0c4e

Browse files
committed
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: * cli/cli#10047 * https://cli.github.com/manual/gh_help_environment
1 parent 855f261 commit 98a0c4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/verify-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ jobs:
9292
run: gh attestation verify ${{ steps.source.outputs.FILE }} -o PHPCSStandards
9393
env:
9494
GH_TOKEN: ${{ github.token }}
95+
GH_FORCE_TTY: true
9596

9697
- name: Download public key
9798
env:
@@ -183,6 +184,7 @@ jobs:
183184
run: gh attestation verify ./tools/${{ matrix.pharfile }} -o PHPCSStandards
184185
env:
185186
GH_TOKEN: ${{ github.token }}
187+
GH_FORCE_TTY: true
186188

187189
# Note: the `.` is in the command to make it work for both PHPCS as well PHPCBF.
188190
- name: Verify the PHAR is nominally functional

0 commit comments

Comments
 (0)