You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fails for latest stable Chrome 119 (119.0.6045.105) #243
Hi @kunalherkal and @robacarp — thanks for the report, and special thanks for narrowing it down to the container: case; that was the key clue.
Root cause. Running inside a container image hits two problems:
apt-key was removed in Debian 12 ("bookworm") and later. The action's built-in Chrome-install path uses apt-key, so it fails with apt-key: command not found on bookworm-based images (ruby:latest, node:slim, debian:*-slim, etc.). Older bullseye-based images like ruby:3.2.2 still ship apt-key, which is why behavior differed across images.
Minimal images are missing prerequisites the action assumes on a hosted runner (git, sudo, gnupg, unzip, …).
Workaround. Prepare the container yourself before calling the action. Three things are required:
Install the prerequisites beforeactions/checkout (checkout itself needs git, which slim images don't ship).
Install Google Chrome yourself using the modern signed-by keyring scheme (instead of the removed apt-key).
Pass chromeapp: google-chrome-stable — the action checks dpkg -s <chromeapp>, so it must match the installed package name, not the google-chrome binary alias. Otherwise the check misses and the action falls back to the broken apt-key path.
What's been added. This is now documented in the README under Usage in a Container, and a CI workflow (container-test.yml, added in #453) continuously verifies it across ruby:3.2.2, ruby:latest, elixir:slim, node:slim, and debian:stable-slim — all green.
Note this documents and tests the workaround; the action itself still relies on the host having these prerequisites (its behavior is unchanged for now). Modernizing the action's own apt path (apt-key → signed-by) is tracked separately.
Activity
[-]Fails for latest stable Chrome (119.0.6045.105)[/-][+]Fails for latest stable Chrome 119 (119.0.6045.105)[/+]robacarp commentedon Jan 17, 2024
I ran into this issue when running my job with a container definition like this:
But when I ran it without the container and installed ruby manually, it had no problem:
I suspect the issue is, the ruby container is missing some dependency that the scripts herein depend upon.
nanasess commentedon Jan 18, 2024
@robacarp Thanks for the valuable report, I will test it with
container: image: rubyfix(ci): コンテナテストで chromeapp をパッケージ名に一致させる
feat(ci): コンテナ互換テストを常設 PR ゲート化 + README 追記
Merge pull request #453 from nanasess/test/container-compatibility
nanasess commentedon May 31, 2026
Hi @kunalherkal and @robacarp — thanks for the report, and special thanks for narrowing it down to the
container:case; that was the key clue.Root cause. Running inside a container image hits two problems:
apt-keywas removed in Debian 12 ("bookworm") and later. The action's built-in Chrome-install path usesapt-key, so it fails withapt-key: command not foundon bookworm-based images (ruby:latest,node:slim,debian:*-slim, etc.). Older bullseye-based images likeruby:3.2.2still shipapt-key, which is why behavior differed across images.git,sudo,gnupg,unzip, …).Workaround. Prepare the container yourself before calling the action. Three things are required:
actions/checkout(checkout itself needsgit, which slim images don't ship).signed-bykeyring scheme (instead of the removedapt-key).chromeapp: google-chrome-stable— the action checksdpkg -s <chromeapp>, so it must match the installed package name, not thegoogle-chromebinary alias. Otherwise the check misses and the action falls back to the brokenapt-keypath.What's been added. This is now documented in the README under Usage in a Container, and a CI workflow (
container-test.yml, added in #453) continuously verifies it acrossruby:3.2.2,ruby:latest,elixir:slim,node:slim, anddebian:stable-slim— all green.Note this documents and tests the workaround; the action itself still relies on the host having these prerequisites (its behavior is unchanged for now). Modernizing the action's own apt path (
apt-key→signed-by) is tracked separately.