@codefresh-io/kube-integration 1.31.0 → 1.31.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,4 +3,16 @@
3
3
  ## Why
4
4
 
5
5
  ## Notes
6
- <!-- Add any notes here -->
6
+ <!-- Add any notes here -->
7
+
8
+ ## Labels
9
+
10
+ Assign the following labels to the PR:
11
+
12
+ `security` - to trigger image scanning in CI build
13
+
14
+ ## PR Comments
15
+
16
+ Add the following comments to the PR:
17
+
18
+ `/e2e` - to trigger E2E build
@@ -10,6 +10,9 @@ jobs:
10
10
  create_release:
11
11
  name: Create Release
12
12
  runs-on: ubuntu-latest
13
+ permissions:
14
+ contents: write
15
+ pull-requests: write
13
16
  steps:
14
17
  - name: Checkout
15
18
  uses: actions/checkout@v3
@@ -0,0 +1,23 @@
1
+ ## Reference: https://github.com/amannn/action-semantic-pull-request
2
+ name: PR title
3
+
4
+ on:
5
+ pull_request:
6
+ types:
7
+ - opened
8
+ - reopened
9
+ - edited
10
+ - synchronize
11
+
12
+ jobs:
13
+ validate-pr-title:
14
+ runs-on: ubuntu-latest
15
+ permissions:
16
+ pull-requests: read
17
+ statuses: write
18
+ steps:
19
+ - uses: amannn/action-semantic-pull-request@v5.4.0
20
+ env:
21
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22
+ with:
23
+ requireScope: false
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- v16.20.2
1
+ v20.14.0
package/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM --platform=$BUILDPLATFORM node:20.8.0-alpine
1
+ FROM --platform=$BUILDPLATFORM node:20.14.0-alpine3.20
2
2
 
3
3
  ARG TARGETPLATFORM
4
4
  ARG TARGETARCH
@@ -14,7 +14,7 @@ COPY package.json yarn.lock ./
14
14
  # install required binaries
15
15
  RUN apk add --no-cache --virtual deps make python3 g++ krb5-dev git && \
16
16
  rm -rf node_modules && \
17
- npm update -g npm && \
17
+ npm uninstall -g npm && \
18
18
  yarn install --production --frozen-lockfile && \
19
19
  yarn cache clean && \
20
20
  apk del deps && apk upgrade && \
@@ -34,4 +34,4 @@ USER cfu
34
34
  EXPOSE 9000
35
35
 
36
36
  # run application
37
- CMD ["node", "--max-http-header-size=180000", "index.js"]
37
+ CMD ["node", "--max-http-header-size=360000", "index.js"]
package/infra/express.js CHANGED
@@ -4,7 +4,6 @@ const monitor = require('@codefresh-io/cf-monitor');
4
4
  const Promise = require('bluebird');
5
5
  const express = require('express');
6
6
  const compression = require('compression');
7
- const bodyParser = require('body-parser');
8
7
  const methodOverride = require('method-override');
9
8
  const cookieParser = require('cookie-parser');
10
9
  const morgan = require('morgan');
@@ -63,8 +62,8 @@ class Express {
63
62
  app.use(httpInfra.newDomainMiddleware());
64
63
  app.use(cookieParser());
65
64
  app.use(compression());
66
- app.use(bodyParser.urlencoded({ extended: true }));
67
- app.use(bodyParser.json());
65
+ app.use(express.urlencoded({ extended: true }));
66
+ app.use(express.json());
68
67
  app.use(methodOverride());
69
68
 
70
69
  if (this.config.httpLogger) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.31.0",
2
+ "version": "1.31.7",
3
3
  "name": "@codefresh-io/kube-integration",
4
4
  "main": "index.js",
5
5
  "description": "",
@@ -10,7 +10,7 @@
10
10
  "test": "find . -not -path './node_modules/*' -path '*/*.unit.spec.js' | NODE_ENV=test xargs mocha",
11
11
  "test:e2e": "find . -not -path './node_modules/*' -path '*/*.e2e.spec.js' | NODE_ENV=test xargs mocha",
12
12
  "start": "node index.js",
13
- "deploy": "echo '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' > ~/.npmrc && npm publish",
13
+ "deploy": "echo //registry.npmjs.org/:_authToken=$NPM_TOKEN > ~/.npmrc && npm publish",
14
14
  "lint": "exit 0",
15
15
  "api": "exit 0"
16
16
  },
@@ -19,7 +19,7 @@
19
19
  "url": "git+https://github.com/codefresh-io/kube-integration.git"
20
20
  },
21
21
  "engines": {
22
- "node": "^20.8.0"
22
+ "node": "^20.14.0"
23
23
  },
24
24
  "author": "Oleg Sucharevich <olegs@codefresh.io>",
25
25
  "license": "ISC",
@@ -29,7 +29,6 @@
29
29
  "homepage": "https://github.com/codefresh-io/kube-integration#readme",
30
30
  "resolutions": {
31
31
  "openid-client": "^4.9.0",
32
- "jose": "3.20.4",
33
32
  "tough-cookie": "4.1.3"
34
33
  },
35
34
  "dependencies": {
@@ -38,13 +37,12 @@
38
37
  "@codefresh-io/eventbus": "2.0.0",
39
38
  "@codefresh-io/http-infra": "1.8.14",
40
39
  "bluebird": "^3.5.0",
41
- "body-parser": "1.19.2",
42
40
  "cf-errors": "^0.1.16",
43
41
  "cf-logs": "^1.1.24",
44
42
  "compression": "^1.6.2",
45
43
  "cookie-parser": "^1.4.3",
46
44
  "eventemitter2": "^4.1.2",
47
- "express": "4.17.3",
45
+ "express": "^4.19.2",
48
46
  "google-protobuf": "^3.5.0",
49
47
  "js-yaml": "^3.13.1",
50
48
  "kube-config-builder": "^1.1.3",
package/service.yaml CHANGED
@@ -1 +1 @@
1
- version: 1.31.0
1
+ version: 1.31.8