Skip to content

Commit 48d6733

Browse files
authored
Merge pull request #1389 from swisstopo/feature/viewer-1337-dependency-update
Feature 1337: Dependency Update
2 parents 6b78834 + c38e749 commit 48d6733

Some content is hidden

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

65 files changed

+6867
-6804
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
package-lock.json -diff
21
* -text

.github/scripts/find-version.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const findNextVersion = (tags, branch) => {
1010
if (version.preRelease == null || version.patch !== 0) {
1111
version.minor += 1;
1212
version.patch = 0;
13+
version.preRelease = null
1314
}
1415
} else {
1516
// It's a patch.

.github/workflows/code-quality.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ on:
88
- "!main"
99

1010
env:
11-
NODE_VERSION: "22.x"
12-
RUST_VERSION: "1.73"
11+
NODE_VERSION: "22.5.1"
12+
RUST_VERSION: "1.82"
1313
SQLX_OFFLINE: true
14-
SQLX_VERSION: 0.7.3
14+
SQLX_VERSION: "0.8.2"
1515
PGHOST: localhost # Overrides the default value in .env
1616

1717
jobs:
@@ -33,6 +33,16 @@ jobs:
3333
uses: actions/checkout@v4
3434
- name: Review Dependencies
3535
uses: actions/dependency-review-action@v4
36+
with:
37+
# Disable scorecard output for now, as the output may get too large otherwise,
38+
# causing the action to fail.
39+
show-openssf-scorecard: false
40+
41+
# Allow GHSA-qg5g-gv98-5ffh (https://github.com/advisories/GHSA-qg5g-gv98-5ffh)
42+
# Very recently found as of now (2024-11-26).
43+
# Affects the Rust crate `rustls`, which is in use by multiple of our dependencies.
44+
# There are no fixes for it yet.
45+
allow-ghsas: GHSA-qg5g-gv98-5ffh
3646

3747

3848
install-ui:
@@ -65,7 +75,7 @@ jobs:
6575
restore-keys: |
6676
${{ runner.os }}-node_modules-
6777
- name: Install node dependencies
68-
run: cd ui && npm install
78+
run: cd ui && npm ci
6979

7080

7181
check-ui:
@@ -107,7 +117,9 @@ jobs:
107117
path: ./ui/node_modules
108118
key: "${{ runner.os }}-node_modules-${{ env.NODE_VERSION }}-${{ hashFiles('./ui/package-lock.json') }}"
109119
- name: Run tests
110-
run: cd ui && npm run test
120+
run: |
121+
cd ui
122+
npm run test
111123
112124
113125
lint-ui:
@@ -128,7 +140,9 @@ jobs:
128140
path: ./ui/node_modules
129141
key: "${{ runner.os }}-node_modules-${{ env.NODE_VERSION }}-${{ hashFiles('./ui/package-lock.json') }}"
130142
- name: Run lint
131-
run: cd ui && npm run lint
143+
run: |
144+
cd ui
145+
npm run lint
132146
133147
134148
install-api:
@@ -174,7 +188,6 @@ jobs:
174188
- name: Setup SQLx
175189
run: |
176190
cd api
177-
SQLX_VERSION=0.7.3
178191
if [[ ! -f ~/.cargo/bin/sqlx ]] || [[ $(sqlx --version) != "sqlx-cli $SQLX_VERSION" ]]; then
179192
cargo install sqlx-cli --version $SQLX_VERSION --no-default-features --features native-tls,postgres --locked --quiet
180193
fi

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/secrets.txt
1010

1111
# JetBrains IDE files
12-
/.idea/
12+
.idea/
1313

1414
# Local Docker volumes
1515
/volumes/

0 commit comments

Comments
 (0)