Skip to content

Commit a8f032b

Browse files
committed
Merge master into karppr and fix karpenter scraper
2 parents f3c5e64 + c9508b6 commit a8f032b

File tree

1,081 files changed

+65949
-3463
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,081 files changed

+65949
-3463
lines changed

.github/workflows/cron.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ jobs:
4444
python-version: '3.13'
4545
cache: 'pip' # caching pip dependencies
4646

47+
- name: Install Helm
48+
uses: azure/setup-helm@v3
49+
with:
50+
version: latest
51+
4752
- name: Run compatibility matrix updater
4853
run: |
4954
cd utils/compatibility

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
"files.associations": {
99
"**/src/archive/**/*": "plaintext"
1010
},
11-
"makefile.configureOnOpen": false
11+
"makefile.configureOnOpen": false,
12+
"editor.formatOnSave": true
1213
}

AGENT_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.6.10
1+
v0.6.13

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ COPY assets/package.json ./package.json
1313
COPY assets/yarn.lock ./yarn.lock
1414
COPY assets/.yarn ./.yarn
1515
COPY assets/.yarnrc.yml ./.yarnrc.yml
16+
COPY assets/design-system/package.json ./design-system/package.json
1617

1718
RUN yarn install
1819

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[production]
2+
>0.2%
3+
not dead
4+
not op_mini all
5+
6+
[development]
7+
last 1 chrome version
8+
last 1 firefox version
9+
last 1 safari version

assets/design-system/.firebaserc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "pluralsh-design"
4+
}
5+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @pluralsh/frontend
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: CD
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
deploy:
8+
name: Build and deploy
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: 'Checkout'
12+
uses: actions/checkout@v3
13+
- name: Read Node.js version from package.json
14+
run: echo "nodeVersion=$(node -p "require('./package.json').engines.node")" >> $GITHUB_OUTPUT
15+
id: engines
16+
- name: 'Setup Node'
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: ${{ steps.engines.outputs.nodeVersion }}
20+
- run: yarn --immutable
21+
- run: yarn build:storybook
22+
- uses: FirebaseExtended/action-hosting-deploy@v0
23+
with:
24+
repoToken: '${{ secrets.GITHUB_TOKEN }}'
25+
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_PLURALSH_DESIGN }}'
26+
channelId: live
27+
projectId: pluralsh-design
28+
publish:
29+
name: Publish
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: 'Checkout'
33+
uses: actions/checkout@v3
34+
with:
35+
fetch-depth: 0
36+
token: ${{ secrets.PLURAL_BOT_PAT }}
37+
- name: Read Node.js version from package.json
38+
run: echo "nodeVersion=$(node -p "require('./package.json').engines.node")" >> $GITHUB_OUTPUT
39+
id: engines
40+
- name: 'Setup Node'
41+
uses: actions/setup-node@v3
42+
with:
43+
node-version: ${{ steps.engines.outputs.nodeVersion }}
44+
registry-url: 'https://registry.npmjs.org'
45+
- name: 'Install Dependencies and Clean'
46+
run: yarn install --immutable && yarn clean
47+
- name: Semantic Release
48+
uses: cycjimmy/semantic-release-action@v3
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.PLURAL_BOT_PAT }}
51+
NODE_AUTH_TOKEN: ${{ secrets.PLURAL_BOT_NPM_TOKEN }}
52+
trivy-scan:
53+
name: Trivy fs scan
54+
runs-on: ubuntu-latest
55+
permissions:
56+
contents: read # for actions/checkout to fetch code
57+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
58+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
59+
steps:
60+
- name: Checkout code
61+
uses: actions/checkout@v3
62+
- name: Run Trivy vulnerability scanner in fs mode
63+
uses: aquasecurity/trivy-action@master
64+
with:
65+
scan-type: 'fs'
66+
hide-progress: false
67+
format: 'sarif'
68+
output: 'trivy-results.sarif'
69+
security-checks: 'vuln,secret'
70+
ignore-unfixed: true
71+
#severity: 'CRITICAL,HIGH'
72+
- name: Upload Trivy scan results to GitHub Security tab
73+
uses: github/codeql-action/upload-sarif@v2
74+
with:
75+
sarif_file: 'trivy-results.sarif'
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
7+
jobs:
8+
build:
9+
name: Build
10+
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
shell: bash
14+
steps:
15+
- name: 'Checkout'
16+
uses: actions/checkout@v3
17+
- name: Read Node.js version from package.json
18+
run: echo "nodeVersion=$(node -p "require('./package.json').engines.node")" >> $GITHUB_OUTPUT
19+
id: engines
20+
- name: 'Setup Node'
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ steps.engines.outputs.nodeVersion }}
24+
- run: |
25+
yarn install --immutable
26+
- run: yarn build
27+
build-storybook:
28+
name: Build Storybook
29+
runs-on: ubuntu-latest
30+
defaults:
31+
run:
32+
shell: bash
33+
steps:
34+
- name: 'Checkout'
35+
uses: actions/checkout@v3
36+
- name: Read Node.js version from package.json
37+
run: echo "nodeVersion=$(node -p "require('./package.json').engines.node")" >> $GITHUB_OUTPUT
38+
id: engines
39+
- name: 'Setup Node'
40+
uses: actions/setup-node@v3
41+
with:
42+
node-version: ${{ steps.engines.outputs.nodeVersion }}
43+
- run: yarn install --immutable
44+
- run: yarn build:storybook
45+
test:
46+
name: Unit test
47+
runs-on: ubuntu-latest
48+
defaults:
49+
run:
50+
shell: bash
51+
steps:
52+
- name: 'Checkout'
53+
uses: actions/checkout@v3
54+
- name: Read Node.js version from package.json
55+
run: echo "nodeVersion=$(node -p "require('./package.json').engines.node")" >> $GITHUB_OUTPUT
56+
id: engines
57+
- name: 'Setup Node'
58+
uses: actions/setup-node@v3
59+
with:
60+
node-version: ${{ steps.engines.outputs.nodeVersion }}
61+
- run: |
62+
yarn install --immutable
63+
- run: yarn test
64+
lint:
65+
name: Lint
66+
runs-on: ubuntu-latest
67+
defaults:
68+
run:
69+
shell: bash
70+
steps:
71+
- name: 'Checkout'
72+
uses: actions/checkout@v3
73+
- name: Read Node.js version from package.json
74+
run: echo "nodeVersion=$(node -p "require('./package.json').engines.node")" >> $GITHUB_OUTPUT
75+
id: engines
76+
- name: 'Setup Node'
77+
uses: actions/setup-node@v3
78+
with:
79+
node-version: ${{ steps.engines.outputs.nodeVersion }}
80+
- run: |
81+
yarn install --immutable
82+
- run: yarn lint
83+
preview:
84+
name: Create preview
85+
if: ${{ github.triggering_actor != 'plural-renovate[bot]' }}
86+
runs-on: ubuntu-latest
87+
steps:
88+
- name: 'Checkout'
89+
uses: actions/checkout@v3
90+
- name: Read Node.js version from package.json
91+
run: echo "nodeVersion=$(node -p "require('./package.json').engines.node")" >> $GITHUB_OUTPUT
92+
id: engines
93+
- name: 'Setup Node'
94+
uses: actions/setup-node@v3
95+
with:
96+
node-version: ${{ steps.engines.outputs.nodeVersion }}
97+
- run: |
98+
yarn install --immutable
99+
- run: yarn build:storybook
100+
- uses: FirebaseExtended/action-hosting-deploy@v0
101+
with:
102+
repoToken: '${{ secrets.GITHUB_TOKEN }}'
103+
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_PLURALSH_DESIGN }}'
104+
projectId: pluralsh-design
105+
trivy-scan:
106+
name: Trivy fs scan
107+
runs-on: ubuntu-latest
108+
permissions:
109+
contents: read # for actions/checkout to fetch code
110+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
111+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
112+
steps:
113+
- name: Checkout code
114+
uses: actions/checkout@v3
115+
- name: Run Trivy vulnerability scanner in fs mode
116+
uses: aquasecurity/trivy-action@master
117+
with:
118+
scan-type: 'fs'
119+
hide-progress: false
120+
format: 'sarif'
121+
output: 'trivy-results.sarif'
122+
security-checks: 'vuln,secret'
123+
ignore-unfixed: true
124+
#severity: 'CRITICAL,HIGH'
125+
- name: Upload Trivy scan results to GitHub Security tab
126+
uses: github/codeql-action/upload-sarif@v2
127+
with:
128+
sarif_file: 'trivy-results.sarif'
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Code Scanning
2+
on:
3+
push:
4+
branches: [ main ]
5+
paths-ignore:
6+
- '**/*.md'
7+
pull_request:
8+
branches: [ main ]
9+
paths-ignore:
10+
- '**/*.md'
11+
schedule:
12+
- cron: '0 0 * * 1'
13+
jobs:
14+
codeql:
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
name: CodeQL
20+
runs-on: ubuntu-latest
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: [ 'typescript' ]
25+
steps:
26+
- uses: actions/checkout@v3
27+
with:
28+
fetch-depth: 0
29+
- uses: github/codeql-action/init@v2
30+
with:
31+
languages: ${{ matrix.language }}
32+
- uses: github/codeql-action/autobuild@v2
33+
- uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)