@opengovsg/mockpass 4.5.1 → 4.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,50 @@
1
+ name: 'OGP CodeQL'
2
+
3
+ on:
4
+ push:
5
+ branches: [ 'main' ]
6
+ pull_request:
7
+ branches: [ 'main' ]
8
+ schedule:
9
+ - cron: '0 10 * * *'
10
+
11
+ jobs:
12
+ analyze:
13
+ name: Analyze (${{matrix.language}})
14
+ runs-on: ${{(matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest'}}
15
+ timeout-minutes: ${{(matrix.language == 'swift' && 120) || 360}}
16
+ permissions:
17
+ # Required for all workflows
18
+ security-events: write
19
+
20
+ # Required to fetch internal or private CodeQL packs
21
+ packages: read
22
+
23
+ # Only required for workflows in private repositories
24
+ actions: read
25
+ contents: read
26
+
27
+ strategy:
28
+ fail-fast: false
29
+ matrix:
30
+ include:
31
+ - language: javascript-typescript
32
+ build-mode: none
33
+ steps:
34
+ - name: Checkout repository
35
+ uses: actions/checkout@v4
36
+
37
+ # Initializes the CodeQL tools for scanning.
38
+ - name: Initialize CodeQL
39
+ uses: github/codeql-action/init@v3
40
+ with:
41
+ languages: ${{matrix.language}}
42
+ build-mode: ${{matrix.build-mode}}
43
+
44
+ # Pull config from https://github.com/opengovsg/codeql-config/blob/prod/codeql-config.yml
45
+ config-file: opengovsg/codeql-config/codeql-config.yml@prod
46
+
47
+ - name: Perform CodeQL Analysis
48
+ uses: github/codeql-action/analyze@v3
49
+ with:
50
+ category: '/language:${{matrix.language}}'
@@ -7,6 +7,8 @@ on:
7
7
  jobs:
8
8
  publish-npm:
9
9
  runs-on: ubuntu-latest
10
+ permissions:
11
+ id-token: write
10
12
  steps:
11
13
  - uses: actions/checkout@v4
12
14
  - uses: actions/setup-node@v3
@@ -15,10 +17,10 @@ jobs:
15
17
  cache: 'npm'
16
18
  cache-dependency-path: '**/package-lock.json'
17
19
  registry-url: https://registry.npmjs.org/
20
+ - name: Update npm
21
+ run: npm install -g npm@latest # Get the latest npm for OIDC support
18
22
  - run: npm ci
19
23
  - run: npm publish --access public
20
- env:
21
- NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
22
24
  publish-docker:
23
25
  runs-on: ubuntu-latest
24
26
  steps:
package/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM node:slim
1
+ FROM node:24-slim
2
2
 
3
3
  WORKDIR /usr/src/mockpass
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengovsg/mockpass",
3
- "version": "4.5.1",
3
+ "version": "4.5.3",
4
4
  "description": "A mock SingPass/CorpPass server for dev purposes",
5
5
  "main": "app.js",
6
6
  "bin": {
@@ -50,8 +50,8 @@
50
50
  "uuid": "^9.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@commitlint/cli": "^19.1.0",
54
- "@commitlint/config-conventional": "^19.0.3",
53
+ "@commitlint/cli": "^20.1.0",
54
+ "@commitlint/config-conventional": "^20.0.0",
55
55
  "@commitlint/travis-cli": "^19.0.3",
56
56
  "@eslint/eslintrc": "^3.1.0",
57
57
  "@eslint/js": "^9.8.0",
@@ -62,7 +62,7 @@
62
62
  "eslint-plugin-prettier": "^4.0.0",
63
63
  "globals": "^16.0.0",
64
64
  "husky": "^9.0.11",
65
- "lint-staged": "^15.2.2",
65
+ "lint-staged": "^16.2.6",
66
66
  "nodemon": "^3.0.1",
67
67
  "pinst": "^3.0.0",
68
68
  "prettier": "^2.0.5"