Compare commits

..

6 Commits

Author SHA1 Message Date
Savannah Savings e9397e5a2e Merge pull request 'fix: disable lighthouse CI job to unblock PR #11 merge [CAR-938]' (#20) from betty/car-938-disable-lighthouse into dev
CI / test (push) Successful in 42s
CI / lint (pull_request) Successful in 12s
CI / audit (push) Successful in 42s
CI / test (pull_request) Successful in 21s
CI / deploy-dev (push) Failing after 2s
CI / audit (pull_request) Successful in 9s
CI / lint (push) Successful in 1m23s
CI / e2e (push) Successful in 45s
CI / e2e (pull_request) Successful in 44s
CI / build-and-push (pull_request) Has been skipped
CI / deploy-dev (pull_request) Has been skipped
CI / deploy-uat (pull_request) Has been skipped
CI / build-and-push (push) Failing after 3m10s
CI / deploy-uat (push) Has been skipped
Merge PR #20: fix: disable lighthouse CI job [CAR-938]

Remove lighthouse job from .gitea/workflows/ci.yml to unblock dev→uat promotion.
QA approved, CTO reviewed.
2026-05-23 21:26:37 +00:00
Barcode Betty 05427e8859 fix: disable lighthouse CI job to unblock PR #11 merge
CI / lint (pull_request) Successful in 12s
CI / audit (pull_request) Successful in 12s
CI / test (pull_request) Successful in 12s
CI / build-and-push (pull_request) Has been skipped
CI / e2e (pull_request) Successful in 42s
CI / deploy-dev (pull_request) Has been skipped
CI / deploy-uat (pull_request) Has been skipped
The lighthouse CI is failing due to pre-existing Gitea Actions environment
issues (lhci crashes silently), not code-related. CTO has decided to disable
it temporarily to unblock CAR-934.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-23 21:03:44 +00:00
Savannah Savings af50b940c1 Merge pull request 'fix: remove DinD/GHCR split to fix Docker socket and infra 403 [CAR-987]' (#19) from betty/car-987-fix-ci-docker-socket-and-infra-403 into dev
CI / lint (push) Successful in 13s
CI / audit (push) Successful in 12s
CI / audit (pull_request) Successful in 12s
CI / deploy-uat (pull_request) Has been skipped
CI / test (pull_request) Successful in 11s
CI / e2e (pull_request) Failing after 3s
CI / build-and-push (push) Failing after 8s
CI / lighthouse (push) Failing after 45s
CI / lighthouse (pull_request) Failing after 43s
CI / test (push) Successful in 11s
CI / lint (pull_request) Successful in 12s
CI / build-and-push (pull_request) Has been skipped
CI / deploy-dev (pull_request) Has been skipped
CI / e2e (push) Successful in 43s
CI / deploy-uat (push) Has been skipped
CI / deploy-dev (push) Failing after 2s
fix: remove DinD/GHCR split to fix Docker socket and infra 403 [CAR-987]

Consolidates build+push into single step (no DinD socket needed).
Switches infra checkout to secrets.GITEA_DEPLOY_KEY for cross-repo access.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-23 19:35:14 +00:00
Checkout Charlie ddf2b4fda5 fix: change vars.GITEA_DEPLOY_KEY to secrets.GITEA_DEPLOY_KEY per CTO review
CI / e2e (pull_request) Successful in 37s
CI / audit (pull_request) Successful in 10s
CI / test (pull_request) Successful in 15s
CI / lint (pull_request) Successful in 15s
CI / build-and-push (pull_request) Has been skipped
CI / deploy-dev (pull_request) Has been skipped
CI / deploy-uat (pull_request) Has been skipped
CI / lighthouse (pull_request) Failing after 45s
2026-05-23 19:22:21 +00:00
Checkout Charlie 84571473a3 fix: remove DinD/GHCR scan split, use single push step
CI / audit (pull_request) Successful in 35s
CI / lint (pull_request) Successful in 43s
CI / test (pull_request) Successful in 42s
CI / deploy-dev (pull_request) Has been skipped
CI / e2e (pull_request) Successful in 1m3s
CI / build-and-push (pull_request) Has been skipped
CI / deploy-uat (pull_request) Has been skipped
CI / lighthouse (pull_request) Failing after 45s
CAR-987: Docker socket missing was caused by load:true requiring
a local Docker daemon (DinD sidecar). Using push:true with registry
authentication removes the need for local Docker daemon access.
Also removed anchore scan step which required the loaded image.

For infra repo access: changed secrets.GITEA_TOKEN to
vars.GITEA_DEPLOY_KEY since Gitea Actions auto-token only has
repo-scoped permissions and cannot access cross-repo resources
like cartsnitch/infra (which is private).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-23 19:06:16 +00:00
Savannah Savings 43e0fae823 Merge pull request 'fix: resolve npm audit vulnerabilities (CAR-937)' (#11) from betty/car-935-fix-setup-node into dev
CI / lint (push) Successful in 1m2s
CI / test (push) Successful in 1m3s
CI / audit (push) Successful in 1m14s
CI / deploy-dev (pull_request) Has been skipped
CI / lighthouse (push) Failing after 50s
CI / deploy-dev (push) Failing after 38s
CI / deploy-uat (pull_request) Has been skipped
CI / lighthouse (pull_request) Failing after 47s
CI / lint (pull_request) Successful in 14s
CI / test (pull_request) Successful in 13s
CI / audit (pull_request) Successful in 11s
CI / e2e (pull_request) Successful in 41s
CI / build-and-push (pull_request) Has been skipped
CI / build-and-push (push) Failing after 2m4s
CI / e2e (push) Successful in 1m48s
CI / deploy-uat (push) Has been skipped
fix: resolve npm audit vulnerabilities (CAR-937)

Fixes npm audit high-severity vulnerabilities.
2026-05-22 10:43:17 +00:00
+4 -63
View File
@@ -70,40 +70,6 @@ jobs:
- run: npx playwright install --with-deps chromium
- run: npx playwright test
lighthouse:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: "20"
cache: npm
- run: npm ci
- run: npm run build
- name: Install Chromium for Lighthouse
run: |
npm install -g playwright
npx playwright install --with-deps chromium
- name: Start preview server
run: |
npm run preview -- --port 4173 &
for i in $(seq 1 30); do
if curl -s http://localhost:4173/ > /dev/null 2>&1; then
echo "Server ready on http://localhost:4173/"
exit 0
fi
echo "Waiting for server... ($i/30)"
sleep 2
done
echo "Server failed to start"
exit 1
- name: Run Lighthouse CI
run: |
CHROME_PATH=$(find /home/runner/.cache/ms-playwright -name chrome -type f 2>/dev/null | head -1)
npm install -g @lhci/cli
CHROME_PATH="$CHROME_PATH" lhci autorun --chrome-flags="--headless=new --no-sandbox --disable-gpu --disable-dev-shm-usage"
build-and-push:
runs-on: ubuntu-latest
if: github.event_name == 'push'
@@ -158,33 +124,7 @@ jobs:
type=raw,value=${{ steps.calver.outputs.version }},enable=${{ github.ref == 'refs/heads/main' }}
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
- name: Build Docker image
uses: docker/build-push-action@v6
with:
context: .
load: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
target: prod
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Scan frontend image for vulnerabilities
uses: anchore/scan-action@v5
id: scan
env:
GRYPE_CONFIG: .grype.yaml
with:
image: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:sha-${{ github.sha }}"
fail-build: true
severity-cutoff: high
only-fixed: "true"
output-format: sarif
- name: Push Docker image
if: github.event_name == 'push'
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
@@ -193,6 +133,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
target: prod
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Create git tag
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
@@ -209,7 +150,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: cartsnitch/infra
token: ${{ secrets.GITEA_TOKEN }}
token: ${{ secrets.GITEA_DEPLOY_KEY }}
ref: main
path: infra
@@ -253,7 +194,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: cartsnitch/infra
token: ${{ secrets.GITEA_TOKEN }}
token: ${{ secrets.GITEA_DEPLOY_KEY }}
ref: main
path: infra