Skip to content

Commit 997d41f

Browse files
Szotkowskisnyk-botdependabot[bot]
authored
Dev (#262)
# Pull Request ## Description Please describe what this PR does and why. ## Related Issues Closes #<issue-number> ## Checklist - [ ] Tests added - [ ] Docs updated - [ ] Follows contribution guidelines Thank you for contributing to **Selecro**! 🧶 --------- Signed-off-by: Michael Szotkowski <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: snyk-bot <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 2c118b9 commit 997d41f

File tree

5 files changed

+34
-171
lines changed

5 files changed

+34
-171
lines changed

.github/continuous-deployment.yml.disabled

Lines changed: 0 additions & 168 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Branch Name Check
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- dev
7+
- main
8+
9+
jobs:
10+
check-branch-name:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check branch name
14+
run: |
15+
echo "PR head: $GITHUB_HEAD_REF"
16+
echo "PR base: $GITHUB_BASE_REF"
17+
18+
if [[ "$GITHUB_HEAD_REF" == "dev" && "$GITHUB_BASE_REF" == "main" ]]; then
19+
echo "✅ Dev to main PR — skipping branch name check."
20+
exit 0
21+
fi
22+
23+
if [[ ! "$GITHUB_HEAD_REF" =~ ^(feature|fix|dependabot)/[a-z0-9._-]+$ ]]; then
24+
echo "❌ Invalid branch name. Use 'feature/*', 'fix/*', or 'dependabot/*'."
25+
exit 1
26+
fi
27+
28+
echo "✅ Branch name is valid"

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# UPDATED BASE IMAGE: Using 'node:22-bookworm-slim' which is built on Debian Bookworm (slim)
44
# and contains more recent security fixes to address reported vulnerabilities.
5-
FROM node:22-bookworm-slim
5+
FROM node:22.17.1-alpine
66

77
# Update system packages to address known vulnerabilities (run as root)
88
RUN apt-get update && \

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"main": "dist/index.js",
1010
"types": "dist/index.d.ts",
1111
"engines": {
12-
"node": "18 || 20 || 22"
12+
"node": "22.17.1"
1313
},
1414
"scripts": {
1515
"build": "lb-tsc",

tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
55
"outDir": "dist",
6-
"rootDir": "src"
6+
"rootDir": "src",
7+
"experimentalDecorators": true,
8+
"emitDecoratorMetadata": true,
9+
"useDefineForClassFields": false
710
},
811
"include": [
912
"src"

0 commit comments

Comments
 (0)