Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Security upgrade lighthouse from 6.4.1 to 7.5.0 #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions .estafette.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
labels:
app: lhci-server
team: aurora
language: nodejs

env:
CONFIG_FILE: estafette.secret(GAP4TP5N72Pwguwc.fDnhd6KTaEFT5_ph1vgTq9iblQwQaH-8I2BWmqc8eYFZM4a2CL6k2x0GtZehHlpRQs3hdbK9Bkm2DDkk6sI3x7H9slqR46UrZhFlUY7q8rfnr-DhuL3Bvn7Hjs8MwXY3w-paDst1eTveg-3Dmz8hMbV4sBMEuQZUF_t60U-INJoXQYtFzfhJlrCIW3q2b_ZbUbwXjf51bP8iKWFfKABJrpftlcqAVC-TOxHloaGJgdYPJxD-laaOgqZvZZEpmstsnU8qDbrn_pDOIQT_OlG4US7H2lrKtYWU0jgarWRUQWAqBEaCSlsFwGAHK3GDyUZ2vPmPg3W8RaPVmwVtX1zAUD94QFjdVDlhfZR_P27xwhXj61rZfZnAfsIX98ywqKzm18rhxv3BTsMgTrhY7qZDil_wbjpmnnEKqvx0tOEdr4OmsLt8wBl8my0Bmu2Cl-vQ.fif6eJ6yDEhd2ZwD7dEWien1nQUtTkeoGEx1x5MFXMd6M6PpP7-KyScg2ZOBfW5P-ndVa32y7B6fNjQk4A==)

stages:
bake:
image: extensions/docker:stable
action: build
inline: |
FROM node:12-buster-slim
WORKDIR /usr/src/lhci
COPY /docs/recipes/docker-server/package.json .
RUN echo $CONFIG_FILE | base64 -d > lighthouserc.json
RUN npm install

EXPOSE 9001
CMD [ "npm", "start" ]
repositories:
- eu.gcr.io/travix-com

push:
image: extensions/docker:stable
action: push
repositories:
- eu.gcr.io/travix-com

releases:
tooling-common:
clone: true
stages:
deploy:
image: extensions/gke:stable
visibility: private
disableServiceAccountKeyRotation: true
namespace: apps
useGoogleCloudCredentials: true
probeService: false
container:
repository: eu.gcr.io/travix-com
port: 9001
cpu:
request: 500m
limit: 500m
memory:
request: 1Gi
limit: 1Gi
liveness:
path: /version
readiness:
path: /version

sidecars:
- type: cloudsqlproxy
env:
CORS_ALLOWED_ORIGINS: "*"
CORS_MAX_AGE: "86400"
cpu:
request: "10m"
limit: "50m"
memory:
request: "10Mi"
limit: "50Mi"
dbinstanceconnectionname: tooling-common-rsc-gvwzh:europe-west1:lighthouse
sqlproxyport: 5432

hosts:
- lhci-server.travix.com

internalhosts:
- lhci-server.internal.travix.io
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@

Lighthouse CI is a suite of tools that make continuously running, saving, retrieving, and asserting against [Lighthouse](https://github.com/GoogleChrome/lighthouse) results as easy as possible.

### Syncing the Fork with Upstream

```console
git clone [email protected]:Travix-International/lighthouse-ci.git && cd lighthouse-ci
git remote add upstream [email protected]:GoogleChrome/lighthouse-ci.git
git fetch upstream master:upstream
git rebase upstream master
git push --force origin master
```

### Quick Start

To get started with GitHub actions for common project configurations, add the following file to your GitHub repository. Follow [the Getting Started guide](./docs/getting-started.md) for a more complete walkthrough and instructions on other providers and setups.
Expand Down
19 changes: 19 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
swagger: '2.0'
info:
version: v1
title: lhci-server.internal.travix.io
host: lhci-server.internal.travix.io
schemes:
- "https"
basePath: "/"
x-google-authorization:
require_access_control: true
paths:
"/":
post:
operationId: ProductsCancellation
responses:
200:
description: Success
security:
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"express": "^4.17.1",
"inquirer": "^6.3.1",
"isomorphic-fetch": "^3.0.0",
"lighthouse": "6.4.1",
"lighthouse": "7.5.0",
"lighthouse-logger": "1.2.0",
"open": "^7.1.0",
"tmp": "^0.1.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/server/src/api/routes/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,14 @@ function createRouter(context) {
})
);

// GET /readiness
router.get(
'/readiness',
handleAsyncError(async (req, res) => {
res.sendStatus(200);
})
);

return router;
}

Expand Down