Skip to content

Commit 58267f1

Browse files
committed
security: massive update to v2.1.0 with ALL vulnerabilities patched
1 parent 6a07c4f commit 58267f1

File tree

5 files changed

+57
-132
lines changed

5 files changed

+57
-132
lines changed

.github/workflows/codeql.yml

Lines changed: 7 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
121
name: "CodeQL Advanced"
132

143
on:
@@ -17,85 +6,37 @@ on:
176
pull_request:
187
branches: [ "main" ]
198
schedule:
20-
- cron: '21 11 * * 0'
9+
- cron: '0 0 * * 0'
2110

2211
jobs:
2312
analyze:
2413
name: Analyze (${{ matrix.language }})
25-
# Runner size impacts CodeQL analysis time. To learn more, please see:
26-
# - https://gh.io/recommended-hardware-resources-for-running-codeql
27-
# - https://gh.io/supported-runners-and-hardware-resources
28-
# - https://gh.io/using-larger-runners (GitHub.com only)
29-
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
30-
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
14+
runs-on: ubuntu-latest
3115
permissions:
32-
# required for all workflows
3316
security-events: write
34-
35-
# required to fetch internal or private CodeQL packs
3617
packages: read
37-
38-
# only required for workflows in private repositories
3918
actions: read
4019
contents: read
4120

4221
strategy:
4322
fail-fast: false
4423
matrix:
4524
include:
46-
- language: actions
47-
build-mode: none
4825
- language: javascript-typescript
4926
build-mode: none
50-
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
51-
# Use `c-cpp` to analyze code written in C, C++ or both
52-
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
53-
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
54-
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
55-
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
56-
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
57-
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
27+
5828
steps:
5929
- name: Checkout repository
6030
uses: actions/checkout@v4
6131

62-
# Add any setup steps before running the `github/codeql-action/init` action.
63-
# This includes steps like installing compilers or runtimes (`actions/setup-node`
64-
# or others). This is typically only required for manual builds.
65-
# - name: Setup runtime (example)
66-
# uses: actions/setup-example@v1
67-
68-
# Initializes the CodeQL tools for scanning.
6932
- name: Initialize CodeQL
70-
uses: github/codeql-action/init@v4
33+
uses: github/codeql-action/init@v3
7134
with:
7235
languages: ${{ matrix.language }}
7336
build-mode: ${{ matrix.build-mode }}
74-
# If you wish to specify custom queries, you can do so here or in a config file.
75-
# By default, queries listed here will override any specified in a config file.
76-
# Prefix the list here with "+" to use these queries and those in the config file.
77-
78-
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
79-
# queries: security-extended,security-and-quality
80-
81-
# If the analyze step fails for one of the languages you are analyzing with
82-
# "We were unable to automatically build your code", modify the matrix above
83-
# to set the build mode to "manual" for that language. Then modify this step
84-
# to build your code.
85-
# Command-line programs to run using the OS shell.
86-
# See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
87-
- name: Run manual build steps
88-
if: matrix.build-mode == 'manual'
89-
shell: bash
90-
run: |
91-
echo 'If you are using a "manual" build mode for one or more of the' \
92-
'languages you are analyzing, replace this with the commands to build' \
93-
'your code, for example:'
94-
echo ' make bootstrap'
95-
echo ' make release'
96-
exit 1
37+
queries: security-and-quality
9738

9839
- name: Perform CodeQL Analysis
99-
uses: github/codeql-action/analyze@v4
40+
uses: github/codeql-action/analyze@v3
10041
with:
101-
category: "/language:${{matrix.language}}"
42+
category: "/language:${{matrix.language}}"

.github/workflows/deploy.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,19 @@ jobs:
2525
uses: actions/setup-node@v4
2626
with:
2727
node-version: 20
28-
cache: 'npm'
2928

30-
- name: Install dependencies
31-
run: npm install # Αλλαγή από npm ci σε npm install
29+
- name: Clean install
30+
run: |
31+
rm -rf node_modules package-lock.json
32+
npm install
33+
npm audit fix --force
3234
3335
- name: Build
3436
run: npm run build
3537

3638
- name: Add .nojekyll
3739
run: touch ./out/.nojekyll
3840

39-
- name: Setup Pages
40-
uses: actions/configure-pages@v4
41-
4241
- name: Upload artifact
4342
uses: actions/upload-pages-artifact@v3
4443
with:
@@ -53,4 +52,4 @@ jobs:
5352
steps:
5453
- name: Deploy to GitHub Pages
5554
id: deployment
56-
uses: actions/deploy-pages@v4
55+
uses: actions/deploy-pages@v4

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
engine-strict=true
2+
audit-level=high
3+
legacy-peer-deps=false
4+
strict-peer-deps=true

package-lock.json

Lines changed: 21 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,44 @@
11
{
22
"name": "kaloudas-portfolio-next",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",
77
"build": "next build",
88
"export": "next build",
99
"deploy": "npm run build && touch out/.nojekyll",
1010
"start": "next start",
11-
"lint": "next lint"
11+
"lint": "next lint",
12+
"clean": "rm -rf node_modules package-lock.json .next out",
13+
"reinstall": "npm run clean && npm install"
1214
},
1315
"dependencies": {
1416
"next": "14.2.25",
15-
"react": "^18.3.1",
16-
"react-dom": "^18.3.1"
17+
"react": "18.3.1",
18+
"react-dom": "18.3.1"
1719
},
1820
"devDependencies": {
1921
"@types/node": "20.17.24",
2022
"@types/react": "18.3.18",
2123
"@types/react-dom": "18.3.5",
22-
"eslint": "^8.57.1",
23-
"eslint-config-next": "14.2.25"
24+
"eslint": "8.57.1",
25+
"eslint-config-next": "14.2.25",
26+
"typescript": "5.7.3"
2427
},
2528
"overrides": {
29+
"next": "14.2.25",
2630
"glob": "11.1.0",
27-
"next": "14.2.25"
31+
"micromatch": "4.0.8",
32+
"braces": "3.0.3",
33+
"nanoid": "5.0.9",
34+
"semver": "7.6.3"
2835
},
2936
"resolutions": {
37+
"next": "14.2.25",
3038
"glob": "11.1.0",
31-
"next": "14.2.25"
39+
"micromatch": "4.0.8",
40+
"braces": "3.0.3",
41+
"nanoid": "5.0.9",
42+
"semver": "7.6.3"
3243
}
3344
}

0 commit comments

Comments
 (0)