Skip to content

Commit

Permalink
GH Actions/verify-release: show output for release attestations
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jrfnl committed Dec 14, 2024
1 parent 57d7bd0 commit ceeba63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/verify-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ceeba63

Please sign in to comment.