hunt: the password-mask workflow has a group of its own and reads the Linux packages from the run's linux-deps repository

This commit is contained in:
feder-cr committed 2026-12-02 00:34:13 +01:00
1 parent 0b322b60ed
commit 076124ab31
1 file changed
+29 -4
+29 -4
View File
@@ -20,6 +20,10 @@ on:
permissions:
contents: read
concurrency:
group: hunt-password-mask-${{ github.ref }}
cancel-in-progress: true
env:
GITHUB_TOKEN: ${{ github.token }}
ENGINE_RUN: "46711856312"
@@ -27,8 +31,18 @@ env:
CORE_SHA: b6d8600603d5a1a3601f1839a61cce4b7f3cdda2
jobs:
# The Ubuntu packages, from Ubuntu's archive once per runner image and list (linux-deps.yml), never by the hunt.
linux-deps-hunt:
name: linux-deps-hunt
uses: ./.github/workflows/linux-deps.yml
with:
name: hunt
packages: xvfb
playwright_wrapper_ref: ${{ github.sha }}
hunt:
name: password mask (linux, the product's Xvfb)
needs: linux-deps-hunt
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
@@ -62,11 +76,22 @@ jobs:
python -m pip install "playwright==$(cat scripts/playwright_pin.txt)"
python -m pip install --no-deps --force-reinstall "git+https://github.com/oss-invisible/core@$CORE_SHA"
python -m pip list 2>/dev/null | grep -i -E "invisible|playwright"
- name: System deps (xvfb + Firefox runtime libs)
- name: The Linux packages (the run's linux-deps-hunt job, no mirror)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: ${{ needs.linux-deps-hunt.outputs.artifact }}
path: /tmp/linux-deps
- name: System deps (xvfb + Firefox runtime libs; the repository of the linux-deps-hunt job)
run: |
sudo apt-get update
sudo apt-get install -y xvfb fontconfig
sudo "$(which python)" -m playwright install-deps firefox
set -euo pipefail
read -r OS VER < /tmp/linux-deps/image.txt
echo "the repository was read on $OS $VER; this runner is $ImageOS $ImageVersion"
sudo mkdir -p /tmp/linux-deps-apt/lists/partial /tmp/linux-deps-apt/parts
echo "deb [trusted=yes] file:/tmp/linux-deps ./" | sudo tee /tmp/linux-deps-apt/sources.list >/dev/null
APT="-o Dir::Etc::SourceList=/tmp/linux-deps-apt/sources.list -o Dir::Etc::SourceParts=/tmp/linux-deps-apt/parts -o Dir::State::Lists=/tmp/linux-deps-apt/lists -o Acquire::Languages=none"
sudo apt-get $APT update
sudo cp /tmp/linux-deps/*.deb /var/cache/apt/archives/
sudo apt-get $APT install -y --no-download --no-install-recommends $(cat /tmp/linux-deps/roots.txt)
- name: The security state (a fixed directory of the repository)
run: python scripts/ci_lab_security_state.py set --pin ci/security-state.pin.json
- name: The GeoIP database (made by the repository, same bytes every run)