Skip to content

Conversation

takano32
Copy link
Contributor

@takano32 takano32 commented Aug 17, 2023

Fixes #7821

Fix GPG key to trust in deploy api docs action

Description
Fix below error in GitHub Action.

e.g. https://github.com/codeigniter4/CodeIgniter4/actions/runs/5886110536/job/15963492748

sudo phive --no-progress install --global --trust-gpg-keys 67F861C3D889C656 phpDocumentor
  shell: /usr/bin/bash -e {0}
  env:
    COMPOSER_PROCESS_TIMEOUT: 0
    COMPOSER_NO_INTERACTION: 1
    COMPOSER_NO_AUDIT: 1
Phive 0.15.2 - Copyright (C) 2015-202[3](https://github.com/codeigniter4/CodeIgniter4/actions/runs/5886110536/job/15963492748#step:6:3) by Arne Blankerts, Sebastian Heuer and Contributors
Fetching repository list
Downloading https://phar.io/data/repositories.xml
Downloading https://api.github.com/repos/phpdocumentor/phpdocumentor2/releases?per_page=100
Downloading https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.[4](https://github.com/codeigniter4/CodeIgniter4/actions/runs/5886110536/job/15963492748#step:6:4).0/phpDocumentor.phar
Downloading https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.4.0/phpDocumentor.phar.asc
Downloading key 8AC0BAA79732DD42
Trying to connect to keys.openpgp.org (37.218.24[5](https://github.com/codeigniter4/CodeIgniter4/actions/runs/5886110536/job/15963492748#step:6:5).50)
Downloading https://keys.openpgp.org/pks/lookup?op=get&options=mr&search=0x8AC0BAA79732DD42
Successfully downloaded key.
Error:    Needs tty to be able to confirm

	Fingerprint: F33A 0AF[6](https://github.com/codeigniter4/CodeIgniter4/actions/runs/5886110536/job/15963492748#step:6:6) 9AF[7](https://github.com/codeigniter4/CodeIgniter4/actions/runs/5886110536/job/15963492748#step:6:7) A[8](https://github.com/codeigniter4/CodeIgniter4/actions/runs/5886110536/job/15963492748#step:6:9)B1 5017 DB52 6DA3 ACC4 [9](https://github.com/codeigniter4/CodeIgniter4/actions/runs/5886110536/job/15963492748#step:6:10)91F FAE5

	phpDocumentor <[email protected]>

	Created: 2019-07-26

Import this key? [y|N] 
Error: Process completed with exit code 4.

Checklist:

  • Securely signed commits
  • [] Component(s) with PHPDoc blocks, only if necessary or adds value
  • [] Unit testing, with >80% coverage
  • [] User guide updated
  • [] Conforms to style guide

Fix GPG key to trust in deploy api docs action
@samsonasik samsonasik requested a review from kenjis August 17, 2023 06:38
@kenjis kenjis added the github_actions Pull requests that update Github_actions code label Aug 17, 2023
@kenjis
Copy link
Member

kenjis commented Aug 17, 2023

@takano32 Thank you for sending PR!
Where can we confirm the GPG key id?

Copy link
Member

@kenjis kenjis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kenjis kenjis merged commit ced6be8 into codeigniter4:develop Aug 17, 2023
@takano32 takano32 deleted the Fix-GPG-key-to-trust-in-deploy-api-docs-action branch August 17, 2023 07:04
@takano32
Copy link
Contributor Author

I see the key in this page, but I can't verify the key physically.

phar-io/phive#260

Thanks for mergin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update Github_actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dev: Deploy to api fails
2 participants