Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev: composer update in GitHub Actions always fail #408

Open
kenjis opened this issue Oct 5, 2023 · 7 comments
Open

Dev: composer update in GitHub Actions always fail #408

kenjis opened this issue Oct 5, 2023 · 7 comments

Comments

@kenjis
Copy link
Member

kenjis commented Oct 5, 2023

Run composer update --ansi
Loading composer repositories with package information
Error: Could not authenticate against github.com

In AuthHelper.php line 132:
                                             
  Could not authenticate against github.com  
                                             

update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>...]

Error: Process completed with exit code 255.

https://github.com/codeigniter4/translations/actions/runs/6407644149/job/17394869633?pr=407

@kenjis kenjis changed the title Dev: GitHub Actions always fail Dev: composer update in GitHub Actions always fail Oct 5, 2023
@MGatner
Copy link
Member

MGatner commented Oct 8, 2023

Might just need to set the key in repo secrets.

@kenjis
Copy link
Member Author

kenjis commented Dec 4, 2023

Run composer update --ansi
Loading composer repositories with package information
Error: Could not authenticate against github.com

In AuthHelper.php line 132:
                                             
  Could not authenticate against github.com  
                                             

update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>...]

Error: Process completed with exit code 255.

https://github.com/codeigniter4/translations/actions/runs/7092930317/job/19306120877?pr=417

@kenjis
Copy link
Member Author

kenjis commented Dec 4, 2023

See https://github.com/codeigniter4/translations/actions/runs/7092930311/job/19306121136?pr=417
Three "Automatic Review on Code" failed.
But "Automatic Review on License" passed.
What's the difference?

@kenjis
Copy link
Member Author

kenjis commented Jan 11, 2024


Run composer update --ansi
Loading composer repositories with package information
Error: Could not authenticate against github.com

In AuthHelper.php line 132:
                                             
  Could not authenticate against github.com  
                                             

update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>...]

Error: Process completed with exit code 255.

https://github.com/codeigniter4/translations/actions/runs/7465875441/job/20316720161

@kenjis
Copy link
Member Author

kenjis commented Jan 17, 2024

Every time we get the same error.

Might just need to set the key in repo secrets.

What key do we set?

@paulbalandan
Copy link
Member

paulbalandan commented Jan 17, 2024

We are just using secrets.GITHUB_TOKEN as we cannot use PATs for PRs.

@paulbalandan
Copy link
Member

I think this has no longer been the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants