From 00397fe8f9ffa5c92b4193ffd2a113ef8fecb717 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 4 Aug 2026 07:46:29 +0000 Subject: [PATCH 1/6] chore(deps): refresh supported frontend dependencies --- frontend/package.json | 10 +++--- frontend/pnpm-lock.yaml | 60 ++++++++++++++++++------------------ frontend/pnpm-workspace.yaml | 2 +- 3 files changed, 36 insertions(+), 36 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 191b7c90b..ca10d9ba8 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -21,7 +21,7 @@ "@tailwindcss/postcss": "^4", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", - "lucide-react": "^1.27.0", + "lucide-react": "^1.28.0", "next": "16.2.12", "react": "19.2.8", "react-dom": "19.2.8", @@ -33,7 +33,7 @@ "vis-network": "^10.0.2" }, "devDependencies": { - "@playwright/test": "^1.62.0", + "@playwright/test": "^1.62.1", "@types/node": "^26", "@types/react": "^19", "@types/react-dom": "^19", @@ -42,19 +42,19 @@ "eslint-config-next": "16.2.12", "fast-check": "^4.9.0", "jsdom": "^30.0.1", - "postcss": "8.5.24", + "postcss": "8.5.25", "typescript": "^6", "vitest": "^4.1.10" }, "overrides": { "brace-expansion": "5.0.9", - "postcss": "8.5.24", + "postcss": "8.5.25", "undici": "8.9.0", "uuid": "^14.0.0" }, "resolutions": { "brace-expansion": "5.0.9", - "postcss": "8.5.24", + "postcss": "8.5.25", "undici": "8.9.0" } } diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index d7025ff3a..3a6182a1f 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -6,7 +6,7 @@ settings: overrides: brace-expansion: 5.0.9 - postcss: 8.5.24 + postcss: 8.5.25 sharp: 0.35.0 undici: 8.9.0 @@ -35,11 +35,11 @@ importers: specifier: ^2.1.1 version: 2.1.1 lucide-react: - specifier: ^1.27.0 - version: 1.27.0(react@19.2.8) + specifier: ^1.28.0 + version: 1.28.0(react@19.2.8) next: specifier: 16.2.12 - version: 16.2.12(@babel/core@7.29.7)(@playwright/test@1.62.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + version: 16.2.12(@babel/core@7.29.7)(@playwright/test@1.62.1)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) react: specifier: 19.2.8 version: 19.2.8 @@ -66,8 +66,8 @@ importers: version: 10.1.0(@egjs/hammerjs@2.0.17)(component-emitter@2.0.0)(keycharm@0.4.0)(uuid@14.0.1)(vis-data@8.0.4(uuid@14.0.1)(vis-util@6.0.0(@egjs/hammerjs@2.0.17)(component-emitter@2.0.0)))(vis-util@6.0.0(@egjs/hammerjs@2.0.17)(component-emitter@2.0.0)) devDependencies: '@playwright/test': - specifier: ^1.62.0 - version: 1.62.0 + specifier: ^1.62.1 + version: 1.62.1 '@types/node': specifier: ^26 version: 26.1.2 @@ -93,8 +93,8 @@ importers: specifier: ^30.0.1 version: 30.0.1 postcss: - specifier: 8.5.24 - version: 8.5.24 + specifier: 8.5.25 + version: 8.5.25 typescript: specifier: ^6 version: 6.0.3 @@ -626,8 +626,8 @@ packages: '@oxc-project/types@0.139.0': resolution: {integrity: sha512-r9gHphtCs+1M7J0pw6Sn/hh/Wpa/iQrOOkrNAlVLF/gHq+/CJmHIWKKUUhdWjcD6CIa8idarspCsASiXCXvFUw==} - '@playwright/test@1.62.0': - resolution: {integrity: sha512-9zOJ6ZQRAena31MpOH9VSzIz8Ou3YJ/wtY/eQm5T2uhfhG7/U3COrMS8xOtUrZrp9OgdmzEnIYODye3nY1VqzA==} + '@playwright/test@1.62.1': + resolution: {integrity: sha512-DTcUc8qii+cpHvtOwggMtBRMjKZHXYWdw8syRYu2vtzuq4Wxphqq4NfCs5Zt44L6mA8rfDfj+PHnxFc/FeK6mQ==} engines: {node: '>=20'} hasBin: true @@ -2203,8 +2203,8 @@ packages: lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} - lucide-react@1.27.0: - resolution: {integrity: sha512-rJicGl/3Fly/E0rOH1YmPZ6e49JCnKknh1ox1vpHnkfjujAkKA6sqUZvH3MTAaXXjgexyUwgNwTJzTtYuAFYJw==} + lucide-react@1.28.0: + resolution: {integrity: sha512-fARAFJULsGuDDydjp6+6blekG/sBIM29TerzLjc9bQUKAcEfrSc4ZQKb25KRz4OMKd87cZTb5dgq0w/T6KufVg==} peerDependencies: react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0 @@ -2372,13 +2372,13 @@ packages: resolution: {integrity: sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==} engines: {node: '>=12'} - playwright-core@1.62.0: - resolution: {integrity: sha512-nsNRyq0r2zsG8AcRHWknc9QRA5XCueC7gWMrs+Gx2tlZn9hcl8zudfh00lhJPY1DE7NmZ6bDsT9g2yey8mXljA==} + playwright-core@1.62.1: + resolution: {integrity: sha512-wPYSwEBJY9GHraISXqyqtx0na0LpO3XEX7jNDhntbex7tzUS7kLnZsOlFruFJB4Hi/rhDMjXGqHewDZ68nYZVw==} engines: {node: '>=20'} hasBin: true - playwright@1.62.0: - resolution: {integrity: sha512-Z14dG305dgaLu6foB1TXQagFiW8JfSUIUaUuPaKQ6NtBPKF1P/qXcqfh6c6K/icPqdy37JmjbiBXf6JNg6Sylw==} + playwright@1.62.1: + resolution: {integrity: sha512-0M+L3LAD8/nm554LOla9Ayx0j0tmFZ0FBcoQ7F1VuVHpM/XpiC8RcDzBQB8W5+hA8L22THxELzeF+2WcUzvcLg==} engines: {node: '>=20'} hasBin: true @@ -2386,8 +2386,8 @@ packages: resolution: {integrity: sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==} engines: {node: '>= 0.4'} - postcss@8.5.24: - resolution: {integrity: sha512-8RyVklq0owXUTa4xlpzu4l9AaVKIdQvAcOHZWaMh98HgySsUtxRVf/chRe3dsSLqb6i40BzGRzEUddRaI+9TSw==} + postcss@8.5.25: + resolution: {integrity: sha512-DTPx3RWSSnWyzLxQnlH0rJP+EW5ekl16ZU4/psbIhA0e53kJfdgaN5vKM+xP7yJtXVu+nfdVFmlgFDEKAe4Pyw==} engines: {node: ^10 || ^12 || >=14} prelude-ls@1.2.1: @@ -3392,9 +3392,9 @@ snapshots: '@oxc-project/types@0.139.0': {} - '@playwright/test@1.62.0': + '@playwright/test@1.62.1': dependencies: - playwright: 1.62.0 + playwright: 1.62.1 '@radix-ui/primitive@1.1.7': {} @@ -3654,7 +3654,7 @@ snapshots: '@alloc/quick-lru': 5.2.0 '@tailwindcss/node': 4.3.3 '@tailwindcss/oxide': 4.3.3 - postcss: 8.5.24 + postcss: 8.5.25 tailwindcss: 4.3.3 '@tybys/wasm-util@0.10.3': @@ -5008,7 +5008,7 @@ snapshots: dependencies: yallist: 3.1.1 - lucide-react@1.27.0(react@19.2.8): + lucide-react@1.28.0(react@19.2.8): dependencies: react: 19.2.8 @@ -5055,13 +5055,13 @@ snapshots: natural-compare@1.4.0: {} - next@16.2.12(@babel/core@7.29.7)(@playwright/test@1.62.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8): + next@16.2.12(@babel/core@7.29.7)(@playwright/test@1.62.1)(react-dom@19.2.8(react@19.2.8))(react@19.2.8): dependencies: '@next/env': 16.2.12 '@swc/helpers': 0.5.15 baseline-browser-mapping: 2.11.5 caniuse-lite: 1.0.30001806 - postcss: 8.5.24 + postcss: 8.5.25 react: 19.2.8 react-dom: 19.2.8(react@19.2.8) styled-jsx: 5.1.6(@babel/core@7.29.7)(react@19.2.8) @@ -5074,7 +5074,7 @@ snapshots: '@next/swc-linux-x64-musl': 16.2.12 '@next/swc-win32-arm64-msvc': 16.2.12 '@next/swc-win32-x64-msvc': 16.2.12 - '@playwright/test': 1.62.0 + '@playwright/test': 1.62.1 sharp: 0.35.0 transitivePeerDependencies: - '@babel/core' @@ -5179,17 +5179,17 @@ snapshots: picomatch@4.0.5: {} - playwright-core@1.62.0: {} + playwright-core@1.62.1: {} - playwright@1.62.0: + playwright@1.62.1: dependencies: - playwright-core: 1.62.0 + playwright-core: 1.62.1 optionalDependencies: fsevents: 2.3.2 possible-typed-array-names@1.1.0: {} - postcss@8.5.24: + postcss@8.5.25: dependencies: nanoid: 3.3.16 picocolors: 1.1.1 @@ -5667,7 +5667,7 @@ snapshots: dependencies: lightningcss: 1.33.0 picomatch: 4.0.5 - postcss: 8.5.24 + postcss: 8.5.25 rolldown: 1.1.5 tinyglobby: 0.2.17 optionalDependencies: diff --git a/frontend/pnpm-workspace.yaml b/frontend/pnpm-workspace.yaml index d028031d2..5094ea3fc 100644 --- a/frontend/pnpm-workspace.yaml +++ b/frontend/pnpm-workspace.yaml @@ -15,7 +15,7 @@ supportedArchitectures: overrides: brace-expansion: "5.0.9" - postcss: "8.5.24" + postcss: "8.5.25" sharp: "0.35.0" undici: 8.9.0 From d842222f324c65defb92d0f24c3e0f895123a5ba Mon Sep 17 00:00:00 2001 From: Seongho Bae Date: Tue, 4 Aug 2026 20:56:32 +0900 Subject: [PATCH 2/6] ci: finalize frontend dependency governance update --- .../pr-1230-finalize-frontend-governance.yml | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 .github/workflows/pr-1230-finalize-frontend-governance.yml diff --git a/.github/workflows/pr-1230-finalize-frontend-governance.yml b/.github/workflows/pr-1230-finalize-frontend-governance.yml new file mode 100644 index 000000000..cd6c254c1 --- /dev/null +++ b/.github/workflows/pr-1230-finalize-frontend-governance.yml @@ -0,0 +1,98 @@ +name: PR 1230 finalize frontend dependency governance + +on: + push: + branches: + - dependabot/npm_and_yarn/frontend/frontend-npm-6c49e239bc + paths: + - .github/workflows/pr-1230-finalize-frontend-governance.yml + +concurrency: + group: pr-1230-finalize-frontend-governance + cancel-in-progress: false + +permissions: + contents: write + +jobs: + finalize: + if: github.actor != 'github-actions[bot]' + runs-on: ubuntu-latest + timeout-minutes: 60 + env: + PYTHONWARNINGS: error + DISABLE_BACKGROUND_WORKERS: "1" + steps: + - name: Harden the runner + uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 + with: + egress-policy: audit + + - name: Checkout the exact pull-request branch + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: dependabot/npm_and_yarn/frontend/frontend-npm-6c49e239bc + fetch-depth: 0 + persist-credentials: true + + - name: Align the permanent PostCSS governance contract + run: | + python - <<'PY' + from pathlib import Path + + path = Path("backend/tests/test_release_governance.py") + source = path.read_text(encoding="utf-8") + occurrences = source.count('"8.5.24"') + if occurrences == 0: + raise SystemExit("Expected the stale PostCSS 8.5.24 governance values") + source = source.replace('"8.5.24"', '"8.5.25"') + path.write_text(source, encoding="utf-8") + PY + + - name: Set up Node.js + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + with: + node-version: "24" + cache: pnpm + cache-dependency-path: frontend/pnpm-lock.yaml + + - name: Install the exact frontend closure + run: | + corepack enable pnpm + corepack prepare pnpm@11.5.3 --activate + cd frontend + pnpm install --frozen-lockfile + test "$(pnpm exec node -p \"require('postcss/package.json').version\")" = "8.5.25" + + - name: Verify frontend lint, types, tests, coverage, and production build + run: | + cd frontend + pnpm run lint + pnpm run typecheck + pnpm run test + pnpm run coverage + pnpm run build + + - name: Set up Python + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 + with: + python-version: "3.14" + cache: pip + cache-dependency-path: backend/requirements-hashes.txt + + - name: Verify the release-governance regression + run: | + python -m pip install --disable-pip-version-check --require-hashes -r backend/requirements-hashes.txt + python -m ruff check backend/tests/test_release_governance.py + python -m pytest backend/tests/test_release_governance.py -q + git diff --check + + - name: Commit only verified permanent changes + run: | + rm .github/workflows/pr-1230-finalize-frontend-governance.yml + git diff --check + git config user.name github-actions[bot] + git config user.email 41898282+github-actions[bot]@users.noreply.github.com + git add backend/tests/test_release_governance.py + git commit -m "test(frontend): align PostCSS governance to 8.5.25" + git push origin HEAD:dependabot/npm_and_yarn/frontend/frontend-npm-6c49e239bc From eb9e0442d45e7570e50739efc11cbcc627bc16c6 Mon Sep 17 00:00:00 2001 From: Seongho Bae Date: Tue, 4 Aug 2026 21:37:45 +0900 Subject: [PATCH 3/6] ci(pr-1230): trigger verified PostCSS governance alignment --- .github/workflows/pr-1230-finalize-frontend-governance.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pr-1230-finalize-frontend-governance.yml b/.github/workflows/pr-1230-finalize-frontend-governance.yml index cd6c254c1..1235428b6 100644 --- a/.github/workflows/pr-1230-finalize-frontend-governance.yml +++ b/.github/workflows/pr-1230-finalize-frontend-governance.yml @@ -96,3 +96,5 @@ jobs: git add backend/tests/test_release_governance.py git commit -m "test(frontend): align PostCSS governance to 8.5.25" git push origin HEAD:dependabot/npm_and_yarn/frontend/frontend-npm-6c49e239bc + +# Trigger exact-head governance repair; this temporary workflow deletes itself after verification. From 356df8b34bd187ec92d1373fd09f86c8b15bf921 Mon Sep 17 00:00:00 2001 From: Seongho Bae Date: Fri, 7 Aug 2026 14:51:09 +0900 Subject: [PATCH 4/6] ci(pr-1230): finalize PostCSS governance safely --- .../pr-1230-finalize-frontend-governance.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-1230-finalize-frontend-governance.yml b/.github/workflows/pr-1230-finalize-frontend-governance.yml index 1235428b6..e4600ccf0 100644 --- a/.github/workflows/pr-1230-finalize-frontend-governance.yml +++ b/.github/workflows/pr-1230-finalize-frontend-governance.yml @@ -12,13 +12,15 @@ concurrency: cancel-in-progress: false permissions: - contents: write + contents: read jobs: finalize: if: github.actor != 'github-actions[bot]' runs-on: ubuntu-latest timeout-minutes: 60 + permissions: + contents: write env: PYTHONWARNINGS: error DISABLE_BACKGROUND_WORKERS: "1" @@ -63,6 +65,7 @@ jobs: cd frontend pnpm install --frozen-lockfile test "$(pnpm exec node -p \"require('postcss/package.json').version\")" = "8.5.25" + pnpm why postcss - name: Verify frontend lint, types, tests, coverage, and production build run: | @@ -71,7 +74,7 @@ jobs: pnpm run typecheck pnpm run test pnpm run coverage - pnpm run build + POSTCSS_WORKERS=1 DISABLE_POSTCSS_WORKERS=true pnpm run build - name: Set up Python uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 @@ -87,13 +90,17 @@ jobs: python -m pytest backend/tests/test_release_governance.py -q git diff --check - - name: Commit only verified permanent changes + - name: Commit only verified permanent changes and remove this workflow run: | rm .github/workflows/pr-1230-finalize-frontend-governance.yml git diff --check + test "$(git status --short | wc -l)" -eq 2 + git status --short | grep -F ' M backend/tests/test_release_governance.py' + git status --short | grep -F ' D .github/workflows/pr-1230-finalize-frontend-governance.yml' git config user.name github-actions[bot] git config user.email 41898282+github-actions[bot]@users.noreply.github.com - git add backend/tests/test_release_governance.py + git add -A -- backend/tests/test_release_governance.py .github/workflows/pr-1230-finalize-frontend-governance.yml + git diff --cached --check git commit -m "test(frontend): align PostCSS governance to 8.5.25" git push origin HEAD:dependabot/npm_and_yarn/frontend/frontend-npm-6c49e239bc From 416c5d6f9309d75ab385f655e6ffadc7b56c18d1 Mon Sep 17 00:00:00 2001 From: Seongho Bae Date: Fri, 7 Aug 2026 19:41:52 +0900 Subject: [PATCH 5/6] fix(ci): isolate PR 1230 repair credentials --- .../pr-1230-finalize-frontend-governance.yml | 52 ++++++++++++++++--- 1 file changed, 46 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr-1230-finalize-frontend-governance.yml b/.github/workflows/pr-1230-finalize-frontend-governance.yml index e4600ccf0..14fce5154 100644 --- a/.github/workflows/pr-1230-finalize-frontend-governance.yml +++ b/.github/workflows/pr-1230-finalize-frontend-governance.yml @@ -24,21 +24,31 @@ jobs: env: PYTHONWARNINGS: error DISABLE_BACKGROUND_WORKERS: "1" + TARGET_BRANCH: dependabot/npm_and_yarn/frontend/frontend-npm-6c49e239bc steps: - name: Harden the runner uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 with: egress-policy: audit - - name: Checkout the exact pull-request branch + - name: Checkout the exact triggering head without persisted credentials uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - ref: dependabot/npm_and_yarn/frontend/frontend-npm-6c49e239bc + ref: ${{ github.sha }} fetch-depth: 0 - persist-credentials: true + persist-credentials: false + + - name: Verify exact trigger identity + shell: bash + run: | + set -euo pipefail + test "$GITHUB_SHA" = "$(git rev-parse HEAD)" + test "$GITHUB_REF_NAME" = "$TARGET_BRANCH" - name: Align the permanent PostCSS governance contract + shell: bash run: | + set -euo pipefail python - <<'PY' from pathlib import Path @@ -48,6 +58,8 @@ jobs: if occurrences == 0: raise SystemExit("Expected the stale PostCSS 8.5.24 governance values") source = source.replace('"8.5.24"', '"8.5.25"') + if '"8.5.24"' in source: + raise SystemExit("A stale PostCSS governance value remains") path.write_text(source, encoding="utf-8") PY @@ -59,7 +71,9 @@ jobs: cache-dependency-path: frontend/pnpm-lock.yaml - name: Install the exact frontend closure + shell: bash run: | + set -euo pipefail corepack enable pnpm corepack prepare pnpm@11.5.3 --activate cd frontend @@ -68,7 +82,9 @@ jobs: pnpm why postcss - name: Verify frontend lint, types, tests, coverage, and production build + shell: bash run: | + set -euo pipefail cd frontend pnpm run lint pnpm run typecheck @@ -84,14 +100,20 @@ jobs: cache-dependency-path: backend/requirements-hashes.txt - name: Verify the release-governance regression + shell: bash run: | + set -euo pipefail python -m pip install --disable-pip-version-check --require-hashes -r backend/requirements-hashes.txt python -m ruff check backend/tests/test_release_governance.py python -m pytest backend/tests/test_release_governance.py -q git diff --check - - name: Commit only verified permanent changes and remove this workflow + - name: Commit verified permanent changes and remove this workflow + shell: bash + env: + GH_TOKEN: ${{ github.token }} run: | + set -euo pipefail rm .github/workflows/pr-1230-finalize-frontend-governance.yml git diff --check test "$(git status --short | wc -l)" -eq 2 @@ -101,7 +123,25 @@ jobs: git config user.email 41898282+github-actions[bot]@users.noreply.github.com git add -A -- backend/tests/test_release_governance.py .github/workflows/pr-1230-finalize-frontend-governance.yml git diff --cached --check + test "$(git diff --cached --name-only | wc -l)" -eq 2 + git diff --cached --name-only | grep -Fx 'backend/tests/test_release_governance.py' + git diff --cached --name-only | grep -Fx '.github/workflows/pr-1230-finalize-frontend-governance.yml' git commit -m "test(frontend): align PostCSS governance to 8.5.25" - git push origin HEAD:dependabot/npm_and_yarn/frontend/frontend-npm-6c49e239bc -# Trigger exact-head governance repair; this temporary workflow deletes itself after verification. + expected_origin="https://github.com/${GITHUB_REPOSITORY}.git" + askpass="$(mktemp)" + trap 'rm -f "$askpass"' EXIT + cat >"$askpass" <<'SH' + #!/usr/bin/env sh + case "${1:-}" in + *Username*) printf '%s\n' 'x-access-token' ;; + *Password*) printf '%s\n' "${GH_TOKEN:?}" ;; + *) exit 1 ;; + esac + SH + chmod 700 "$askpass" + GIT_ASKPASS="$askpass" GIT_TERMINAL_PROMPT=0 \ + git -c core.hooksPath=/dev/null push \ + "$expected_origin" "HEAD:refs/heads/${TARGET_BRANCH}" + +# Trigger exact-head governance repair v2; this temporary workflow deletes itself after verification. From 8ab5896ea1bbed9e714b8752f9220feda030ffbb Mon Sep 17 00:00:00 2001 From: Seongho Bae Date: Fri, 7 Aug 2026 19:45:58 +0900 Subject: [PATCH 6/6] chore(ci): remove temporary PR 1230 writer --- .../pr-1230-finalize-frontend-governance.yml | 147 ------------------ 1 file changed, 147 deletions(-) delete mode 100644 .github/workflows/pr-1230-finalize-frontend-governance.yml diff --git a/.github/workflows/pr-1230-finalize-frontend-governance.yml b/.github/workflows/pr-1230-finalize-frontend-governance.yml deleted file mode 100644 index 14fce5154..000000000 --- a/.github/workflows/pr-1230-finalize-frontend-governance.yml +++ /dev/null @@ -1,147 +0,0 @@ -name: PR 1230 finalize frontend dependency governance - -on: - push: - branches: - - dependabot/npm_and_yarn/frontend/frontend-npm-6c49e239bc - paths: - - .github/workflows/pr-1230-finalize-frontend-governance.yml - -concurrency: - group: pr-1230-finalize-frontend-governance - cancel-in-progress: false - -permissions: - contents: read - -jobs: - finalize: - if: github.actor != 'github-actions[bot]' - runs-on: ubuntu-latest - timeout-minutes: 60 - permissions: - contents: write - env: - PYTHONWARNINGS: error - DISABLE_BACKGROUND_WORKERS: "1" - TARGET_BRANCH: dependabot/npm_and_yarn/frontend/frontend-npm-6c49e239bc - steps: - - name: Harden the runner - uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 - with: - egress-policy: audit - - - name: Checkout the exact triggering head without persisted credentials - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - ref: ${{ github.sha }} - fetch-depth: 0 - persist-credentials: false - - - name: Verify exact trigger identity - shell: bash - run: | - set -euo pipefail - test "$GITHUB_SHA" = "$(git rev-parse HEAD)" - test "$GITHUB_REF_NAME" = "$TARGET_BRANCH" - - - name: Align the permanent PostCSS governance contract - shell: bash - run: | - set -euo pipefail - python - <<'PY' - from pathlib import Path - - path = Path("backend/tests/test_release_governance.py") - source = path.read_text(encoding="utf-8") - occurrences = source.count('"8.5.24"') - if occurrences == 0: - raise SystemExit("Expected the stale PostCSS 8.5.24 governance values") - source = source.replace('"8.5.24"', '"8.5.25"') - if '"8.5.24"' in source: - raise SystemExit("A stale PostCSS governance value remains") - path.write_text(source, encoding="utf-8") - PY - - - name: Set up Node.js - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 - with: - node-version: "24" - cache: pnpm - cache-dependency-path: frontend/pnpm-lock.yaml - - - name: Install the exact frontend closure - shell: bash - run: | - set -euo pipefail - corepack enable pnpm - corepack prepare pnpm@11.5.3 --activate - cd frontend - pnpm install --frozen-lockfile - test "$(pnpm exec node -p \"require('postcss/package.json').version\")" = "8.5.25" - pnpm why postcss - - - name: Verify frontend lint, types, tests, coverage, and production build - shell: bash - run: | - set -euo pipefail - cd frontend - pnpm run lint - pnpm run typecheck - pnpm run test - pnpm run coverage - POSTCSS_WORKERS=1 DISABLE_POSTCSS_WORKERS=true pnpm run build - - - name: Set up Python - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 - with: - python-version: "3.14" - cache: pip - cache-dependency-path: backend/requirements-hashes.txt - - - name: Verify the release-governance regression - shell: bash - run: | - set -euo pipefail - python -m pip install --disable-pip-version-check --require-hashes -r backend/requirements-hashes.txt - python -m ruff check backend/tests/test_release_governance.py - python -m pytest backend/tests/test_release_governance.py -q - git diff --check - - - name: Commit verified permanent changes and remove this workflow - shell: bash - env: - GH_TOKEN: ${{ github.token }} - run: | - set -euo pipefail - rm .github/workflows/pr-1230-finalize-frontend-governance.yml - git diff --check - test "$(git status --short | wc -l)" -eq 2 - git status --short | grep -F ' M backend/tests/test_release_governance.py' - git status --short | grep -F ' D .github/workflows/pr-1230-finalize-frontend-governance.yml' - git config user.name github-actions[bot] - git config user.email 41898282+github-actions[bot]@users.noreply.github.com - git add -A -- backend/tests/test_release_governance.py .github/workflows/pr-1230-finalize-frontend-governance.yml - git diff --cached --check - test "$(git diff --cached --name-only | wc -l)" -eq 2 - git diff --cached --name-only | grep -Fx 'backend/tests/test_release_governance.py' - git diff --cached --name-only | grep -Fx '.github/workflows/pr-1230-finalize-frontend-governance.yml' - git commit -m "test(frontend): align PostCSS governance to 8.5.25" - - expected_origin="https://github.com/${GITHUB_REPOSITORY}.git" - askpass="$(mktemp)" - trap 'rm -f "$askpass"' EXIT - cat >"$askpass" <<'SH' - #!/usr/bin/env sh - case "${1:-}" in - *Username*) printf '%s\n' 'x-access-token' ;; - *Password*) printf '%s\n' "${GH_TOKEN:?}" ;; - *) exit 1 ;; - esac - SH - chmod 700 "$askpass" - GIT_ASKPASS="$askpass" GIT_TERMINAL_PROMPT=0 \ - git -c core.hooksPath=/dev/null push \ - "$expected_origin" "HEAD:refs/heads/${TARGET_BRANCH}" - -# Trigger exact-head governance repair v2; this temporary workflow deletes itself after verification.