actions / runner-images

GitHub Actions runner images
MIT License
9.13k stars 2.82k forks source link

Ubuntu build fails installing Heroku #9716

Closed taspeotis closed 1 week ago

taspeotis commented 1 week ago

Description

==> azure-arm.build_image: Provisioning with shell script: .temp/images/ubuntu/templates/../scripts/build/install-heroku.sh
##[debug]Agent environment resources - Disk: / Available 31778.00 MB out of 85160.00 MB, Memory: Used 1491.00 MB out of 15980.00 MB, CPU: Usage 0.58%
    azure-arm.build_image: Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [142 B]
    azure-arm.build_image: Hit:2 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
    azure-arm.build_image: Get:3 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
    azure-arm.build_image: Hit:7 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease
    azure-arm.build_image: Get:6 https://cli-assets.heroku.com/channels/stable/apt ./ InRelease [2550 B]
    azure-arm.build_image: Hit:8 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease
    azure-arm.build_image: Hit:4 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease
    azure-arm.build_image: Get:5 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
    azure-arm.build_image: Err:6 https://cli-assets.heroku.com/channels/stable/apt ./ InRelease
    azure-arm.build_image:   The following signatures were invalid: EXPKEYSIG 536F8F1DE80F6A35 Heroku Inc. <support@heroku.com>
    azure-arm.build_image: Reading package lists...
==> azure-arm.build_image: W: GPG error: https://cli-assets.heroku.com/channels/stable/apt ./ InRelease: The following signatures were invalid: EXPKEYSIG 536F8F1DE80F6A35 Heroku Inc. <support@heroku.com>
==> azure-arm.build_image: E: The repository 'https://cli-assets.heroku.com/channels/stable/apt ./ InRelease' is not signed.
    azure-arm.build_image: Reading package lists...
##[debug]Agent environment resources - Disk: / Available 31778.00 MB out of 85160.00 MB, Memory: Used 1491.00 MB out of 15980.00 MB, CPU: Usage 0.58%
    azure-arm.build_image: Building dependency tree...
    azure-arm.build_image: Reading state information...
==> azure-arm.build_image: E: Unable to locate package heroku

Heroku seem to have not updated their release key - note the third line:

~$ curl -fsSL https://cli-assets.heroku.com/channels/stable/apt/release.key | gpg --
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
pub   rsa2048 2022-04-22 [SC] [expired: 2024-04-21]
      83C81A18EEB7D0E8B69EA598536F8F1DE80F6A35
uid           Heroku Inc. <support@heroku.com>
sub   rsa2048 2022-04-22 [E] [expired: never     ]

I emailed support@heroku.com but it bounced. I'm going to try and log a ticket with them.

For now it seems impossible to build this image?

Platforms affected

Runner images affected

Image version and build link

https://github.com/actions/runner-images/blob/main/images/ubuntu/scripts/build/install-heroku.sh via https://github.com/actions/runner-images/blob/main/images/ubuntu/templates/ubuntu-22.04.pkr.hcl

Is it regression?

Yes, it worked two days ago.

Expected behavior

I can run packer build ... and it builds an image.

Actual behavior

I run packer build ... and it does not build the image.

Repro steps

Run packer build ...

taspeotis commented 1 week ago

Logged with Heroku as #1387188 - Release Key Expired

Thank you for contacting Heroku Support! ... Our goal is to respond to your inquiry within 3 business days.

Alexey-Ayupov commented 1 week ago

Hello @taspeotis. We aware of the issue, and working on it.

Alexey-Ayupov commented 1 week ago

Hi @taspeotis. We have updated the installation script it works in our pipelines, please update your branch and try again.