Windows 2019 virtual environment image fail on python installation
Describe the bug Python installation fails on a windows 2019 virtual environments. The windows 2019 image was working january 27. Seems to be from the change of toolcache_registry to github_feed_token on this PR : https://github.com/actions/virtual-environments/commit/0967620111f1f4543c47b02017685ee587daeeda
Area for Triage: Python
Question, Bug, or Feature?:
Virtual environments affected
- [ ] macOS 10.15
- [ ] Ubuntu 16.04 LTS
- [ ] Ubuntu 18.04 LTS
- [ ] Windows Server 2016 R2
- [X] Windows Server 2019
Expected behavior Python installation works
Actual behavior
Python installation fails
Logs :
2020-02-03T16:59:32.0089629Z vhd: Installing npm @actions/[email protected] from https://npm.pkg.github.com/
2020-02-03T16:59:32.0095021Z ==> vhd: NPMFeed-AuthSetup : Cannot bind argument to parameter 'AccessToken' because it is an empty string.
2020-02-03T16:59:32.0100184Z ==> vhd: At C:\Windows\Temp\script-5e383898-a578-b289-d3e3-f070c5bcd08a.ps1:63 char:32
2020-02-03T16:59:32.0105492Z ==> vhd: + NPMFeed-AuthSetup -AccessToken $AccessToken -FeedPrefix $FeedPrefix
2020-02-03T16:59:32.0110215Z ==> vhd: + ~~~~~~~~~~~~
2020-02-03T16:59:32.0116483Z ==> vhd: + CategoryInfo : InvalidData: (:) [NPMFeed-AuthSetup], ParameterBindingValidationException
2020-02-03T16:59:32.0120793Z ==> vhd: + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,NPMFeed-AuthSetup
2020-02-03T16:59:32.0123377Z ==> vhd:
2020-02-03T16:59:32.5909810Z vhd: @actions/[email protected] installation failure; Error: 1
2020-02-03T16:59:32.5914379Z ==> vhd: npm ERR! code E401
2020-02-03T16:59:32.5921449Z ==> vhd: npm ERR! Unable to authenticate, need: Basic realm="GitHub Package Registry"
2020-02-03T16:59:32.5924677Z ==> vhd:
2020-02-03T16:59:32.5930783Z ==> vhd: npm ERR! A complete log of this run can be found in:
2020-02-03T16:59:32.5936606Z ==> vhd: npm ERR! C:\npm\cache\_logs\2020-02-03T16_59_32_519Z-debug.log
Hi @jprioux160 You need to specify your GitHub token to be able to download these packages during image generation: https://github.com/orgs/actions/packages
Oh right! Thank you for your quick reply !