Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Dec 8, 2024
1 parent fba72f6 commit 287e25d
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/verify-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,44 +65,34 @@ jobs:
ini-values: error_reporting=-1, display_errors=On
coverage: none

- run: wget -O phive.phar https://phar.io/releases/phive.phar
- run: wget -O phive.phar.asc https://phar.io/releases/phive.phar.asc
- run: gpg --keyserver hkps://keys.openpgp.org --recv-keys 0x9D8A98B29B2D5D79
- run: gpg --verify phive.phar.asc phive.phar


- name: Verify PHAR file is available and download
# run: curl --remote-name https://github.com/PHPCSStandards/PHP_CodeSniffer/releases/latest/download/${{ matrix.pharfile }}.phar
run: wget -O ${{ matrix.pharfile }}.phar https://github.com/PHPCSStandards/PHP_CodeSniffer/releases/latest/download/${{ matrix.pharfile }}.phar

- name: Verify signature file is available and download
# run: curl --remote-name https://github.com/PHPCSStandards/PHP_CodeSniffer/releases/latest/download/${{ matrix.pharfile }}.phar.asc
run: wget -O ${{ matrix.pharfile }}.phar.asc https://github.com/PHPCSStandards/PHP_CodeSniffer/releases/latest/download/${{ matrix.pharfile }}.phar.asc

- name: "DEBUG: List files"
run: ls -Rlh

# - name: Verify attestation of the PHAR file
# run: gh attestation verify ${{ matrix.pharfile }}.phar -o PHPCSStandards
# env:
# GH_TOKEN: ${{ github.token }}
- name: Verify attestation of the PHAR file
run: gh attestation verify ${{ matrix.pharfile }}.phar -o PHPCSStandards
env:
GH_TOKEN: ${{ github.token }}

- name: Download public key
env:
FINGERPRINT: "0x689DAD778FF08760E046228BA978220305CD5C32"
# run: gpg --keyserver https://keys.openpgp.org/ --search-keys [email protected]
# run: gpg --keyserver hkps://keys.openpgp.org --recv-keys 0x689DAD778FF08760E046228BA978220305CD5C32
run: gpg --keyserver hkps://keys.openpgp.org --recv-keys $FINGERPRINT
# run: gpg --keyserver keys.openpgp.org --recv-keys 689DAD778FF08760E046228BA978220305CD5C32 | gpg --import

- name: "DEBUG: List public keys"
run: gpg -k

- name: Verify signature of the PHAR file
run: gpg --verify ${{ matrix.pharfile }}.phar.asc ${{ matrix.pharfile }}.phar

# Note: the `.` is in the command to make it work for both PHPCS as well PHPCBF.
- name: Verify the PHAR is nominally functional
run: php ${{ matrix.pharfile }}.phar -e --standard=PSR12
run: php ${{ matrix.pharfile }}.phar . -e --standard=PSR12

- name: Grab the version
id: asset_version
Expand Down Expand Up @@ -175,6 +165,7 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}

# Note: the `.` is in the command to make it work for both PHPCS as well PHPCBF.
- name: Verify the PHAR is nominally functional
run: php ./tools/${{ matrix.pharfile }} . -e --standard=PSR12

Expand Down

0 comments on commit 287e25d

Please sign in to comment.