szpak / gradle-pitest-plugin

Gradle plugin for PIT Mutation Testing
http://gradle-pitest-plugin.solidsoft.info/
214 stars 58 forks source link

Release with CD failed with "Support for password authentication was removed" although PAT is used #354

Open szpak opened 1 year ago

szpak commented 1 year ago

The release of 1.15.0 on CI failed with:

> Task :pushRelease2
Caching disabled for task ':pushRelease2' because:
  Build cache is disabled
Task ':pushRelease2' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
Starting process 'command 'sh''. Working directory: /home/travis/build/szpak/gradle-pitest-plugin Command: sh -c 
              git push "https://$GH_TOKEN@github.com/szpak/gradle-pitest-plugin.git" HEAD:refs/heads/master --tags 2>&1 | sed "s/$GH_TOKEN/xxx/g"
Successfully started process 'command 'sh''
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/szpak/gradle-pitest-plugin.git/'
:pushRelease2 (Thread[Daemon worker,5,main]) completed. Took 0.282 secs.

What's interesting, the token should be used there and in addition, releasing that way succeeded on 2022-11-27, way after the mentioned "August 13, 2021". Even the recent change with enforced 2FA should not affect that comment as PAT is configured.

To be explained. Manual releasing is very unpleasant :-/.