Skip to content

Commit 759ff25

Browse files
authored
Merge branch 'main' into fix/linkedPackagesTabAndDeleteAction
Signed-off-by: Suhas N <[email protected]>
2 parents 55da5c5 + cd8bee9 commit 759ff25

File tree

105 files changed

+7361
-8049
lines changed

Some content is hidden

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

105 files changed

+7361
-8049
lines changed

.github/workflows/build_deploy.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3737

3838
- name: pnpm-setup
39-
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
39+
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
4040
with:
4141
version: 8
4242

@@ -53,27 +53,31 @@ jobs:
5353
5454
- name: Run linting
5555
shell: bash
56+
continue-on-error: true
5657
run: |
57-
pnpm lint --output-file eslint_report.json --format json
58+
pnpm biome ci --reporter=github | tee biome_output.txt
59+
60+
# Append output to GitHub summary
61+
{
62+
echo "## 🧹 Biome Report"
63+
echo ""
64+
echo '```'
65+
cat biome_output.txt
66+
echo '```'
67+
} >> $GITHUB_STEP_SUMMARY
5868
5969
- name: Run build
6070
shell: bash
6171
run: |
6272
pnpm build --no-lint > typescript.log
6373
64-
- name: Annotate Code
65-
uses: DerLev/eslint-annotations@v2
66-
with:
67-
eslint-report: eslint_report.json
68-
typescript-log: typescript.log
69-
7074
- name: Create Deploy Tarball
7175
shell: bash
7276
run: |
7377
pnpm pack --pack-destination dist
7478
7579
- name: Create GH release
76-
uses: softprops/action-gh-release@6cbd405e2c4e67a21c47fa9e383d020e4e28b836 # v2.3.3
80+
uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1
7781
if: startsWith(github.ref, 'refs/tags/v')
7882
with:
7983
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666

6767
# Initializes the CodeQL tools for scanning.
6868
- name: Initialize CodeQL
69-
uses: github/codeql-action/init@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
69+
uses: github/codeql-action/init@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
7070
with:
7171
languages: ${{ matrix.language }}
7272
build-mode: ${{ matrix.build-mode }}
@@ -94,6 +94,6 @@ jobs:
9494
exit 1
9595
9696
- name: Perform CodeQL Analysis
97-
uses: github/codeql-action/analyze@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
97+
uses: github/codeql-action/analyze@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
9898
with:
9999
category: '/language:${{matrix.language}}'

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
- name: 'Checkout Repository'
2525
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2626
- name: 'Dependency Review'
27-
uses: actions/dependency-review-action@56339e523c0409420f6c2c9a2f4292bbb3c07dd3 # v4.8.0
27+
uses: actions/dependency-review-action@40c09b7dc99638e5ddb0bfd91c1673effc064d8a # v4.8.1

.github/workflows/docker_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
5050

5151
- name: Login to GitHub Container Registry
52-
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
52+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
5353
with:
5454
registry: ${{ env.REGISTRY }}
5555
username: ${{ github.actor }}

.github/workflows/scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
persist-credentials: false
4242

4343
- name: "Run analysis"
44-
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
44+
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
4545
with:
4646
results_file: results.sarif
4747
results_format: sarif
@@ -55,6 +55,6 @@ jobs:
5555
retention-days: 5
5656

5757
- name: "Upload to code-scanning"
58-
uses: github/codeql-action/upload-sarif@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
58+
uses: github/codeql-action/upload-sarif@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
5959
with:
6060
sarif_file: results.sarif

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,5 @@ output
5050
/cypress/screenshots
5151
/cypress/downloads
5252
dist
53+
public
54+
uploads

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"cSpell.words": ["myprojects"],
1111
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
1212
"editor.formatOnSave": true,
13-
"editor.defaultFormatter": "esbenp.prettier-vscode"
13+
"editor.defaultFormatter": "esbenp.prettier-vscode",
1414
}

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ WORKDIR /frontend
1818

1919
# Prepare the build environment
2020
COPY . .
21+
22+
# define build-time args
23+
ARG NEXT_PUBLIC_SW360_API_URL
24+
ARG NEXTAUTH_URL
25+
ARG AUTH_SECRET
26+
27+
# export them as env vars so Next.js build can see them
28+
ENV NEXT_PUBLIC_SW360_API_URL=$NEXT_PUBLIC_SW360_API_URL
29+
ENV NEXTAUTH_URL=$NEXTAUTH_URL
30+
ENV AUTH_SECRET=$AUTH_SECRET
31+
2132
RUN pnpm install && pnpm build
2233

2334
# Runtime

biome.json

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
3+
"vcs": {
4+
"enabled": false,
5+
"clientKind": "git",
6+
"useIgnoreFile": false
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"includes": [
11+
"src/**",
12+
"messages/*.json",
13+
"Dockerfile",
14+
"tsconfig.json",
15+
"package.json"
16+
]
17+
},
18+
"formatter": {
19+
"enabled": true,
20+
"formatWithErrors": false,
21+
"indentStyle": "space",
22+
"indentWidth": 4,
23+
"lineEnding": "lf",
24+
"lineWidth": 120,
25+
"attributePosition": "multiline",
26+
"bracketSameLine": false,
27+
"bracketSpacing": true,
28+
"expand": "always",
29+
"useEditorconfig": true
30+
},
31+
"linter": {
32+
"enabled": true,
33+
"rules": {
34+
"recommended": false,
35+
"complexity": {
36+
"noAdjacentSpacesInRegex": "error",
37+
"noExtraBooleanCast": "error",
38+
"noUselessCatch": "error",
39+
"noUselessEscapeInRegex": "error",
40+
"noUselessTypeConstraint": "error"
41+
},
42+
"correctness": {
43+
"noConstAssign": "error",
44+
"noConstantCondition": "error",
45+
"noEmptyCharacterClassInRegex": "error",
46+
"noEmptyPattern": "error",
47+
"noGlobalObjectCalls": "error",
48+
"noInvalidBuiltinInstantiation": "error",
49+
"noInvalidConstructorSuper": "error",
50+
"noNonoctalDecimalEscape": "error",
51+
"noPrecisionLoss": "error",
52+
"noSelfAssign": "error",
53+
"noSetterReturn": "error",
54+
"noSwitchDeclarations": "error",
55+
"noUndeclaredVariables": "error",
56+
"noUnreachable": "error",
57+
"noUnreachableSuper": "error",
58+
"noUnsafeFinally": "error",
59+
"noUnsafeOptionalChaining": "error",
60+
"noUnusedLabels": "error",
61+
"noUnusedPrivateClassMembers": "error",
62+
"noUnusedVariables": "error",
63+
"useIsNan": "error",
64+
"useValidForDirection": "error",
65+
"useValidTypeof": "error",
66+
"useYield": "error"
67+
},
68+
"style": {
69+
"noCommonJs": "error",
70+
"noNamespace": "error",
71+
"useArrayLiterals": "error",
72+
"useAsConstAssertion": "error"
73+
},
74+
"suspicious": {
75+
"noAsyncPromiseExecutor": "error",
76+
"noCatchAssign": "error",
77+
"noClassAssign": "error",
78+
"noCompareNegZero": "error",
79+
"noConstantBinaryExpressions": "error",
80+
"noControlCharactersInRegex": "error",
81+
"noDebugger": "error",
82+
"noDuplicateCase": "error",
83+
"noDuplicateClassMembers": "error",
84+
"noDuplicateElseIf": "error",
85+
"noDuplicateObjectKeys": "error",
86+
"noDuplicateParameters": "error",
87+
"noEmptyBlockStatements": "error",
88+
"noExplicitAny": "warn",
89+
"noExtraNonNullAssertion": "error",
90+
"noFallthroughSwitchClause": "error",
91+
"noFunctionAssign": "error",
92+
"noGlobalAssign": "error",
93+
"noImportAssign": "error",
94+
"noIrregularWhitespace": "error",
95+
"noMisleadingCharacterClass": "error",
96+
"noMisleadingInstantiator": "error",
97+
"noPrototypeBuiltins": "error",
98+
"noRedeclare": "error",
99+
"noShadowRestrictedNames": "error",
100+
"noSparseArray": "error",
101+
"noUnsafeDeclarationMerging": "error",
102+
"noUnsafeNegation": "error",
103+
"noUselessRegexBackrefs": "error",
104+
"noWith": "error",
105+
"useAwait": "error",
106+
"useGetterReturn": "error",
107+
"useNamespaceKeyword": "error"
108+
}
109+
}
110+
},
111+
"javascript": {
112+
"formatter": {
113+
"jsxQuoteStyle": "single",
114+
"quoteProperties": "asNeeded",
115+
"trailingCommas": "all",
116+
"semicolons": "asNeeded",
117+
"arrowParentheses": "always",
118+
"bracketSameLine": false,
119+
"quoteStyle": "single",
120+
"attributePosition": "multiline",
121+
"bracketSpacing": true,
122+
"expand": "always",
123+
"indentStyle": "space",
124+
"lineWidth": 120
125+
},
126+
"globals": []
127+
},
128+
"html": {
129+
"formatter": {
130+
"selfCloseVoidElements": "always",
131+
"attributePosition": "multiline",
132+
"bracketSameLine": true,
133+
"indentStyle": "space",
134+
"enabled": true
135+
}
136+
},
137+
"json": {
138+
"formatter": {
139+
"indentWidth": 2,
140+
"indentStyle": "space"
141+
}
142+
},
143+
"css": {
144+
"formatter": {
145+
"quoteStyle": "single"
146+
}
147+
},
148+
"assist": {
149+
"enabled": true,
150+
"actions": {
151+
"source": {
152+
"organizeImports": "on"
153+
}
154+
}
155+
}
156+
}

eslint.config.mjs

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)