Skip to content

Commit 0236fae

Browse files
committed
Update all dev dependencies to fix vulnerabilities
- Update `@uphold/github-changelog-generator@4.0.2` - Update `abavalidator@2.0.2` - Update `bignumber.js@9.3.0` - Update `creditcard@0.1.3` - Update `curp@1.3.1` - Update `google-libphonenumber@3.2.41` - Update `moment@2.30.1` - Update `release-it@19.0.3` and `release` workflow - Update `tin-validator@1.1.0` - Update `validator.js@13.15.15`
1 parent 9075c8b commit 0236fae

4 files changed

Lines changed: 750 additions & 1494 deletions

File tree

.github/workflows/release.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,22 @@ on:
1515

1616
jobs:
1717
release:
18-
runs-on: ubuntu-latest
19-
concurrency: 1
2018
environment: release
19+
runs-on: ubuntu-latest
20+
concurrency:
21+
group: release-${{ github.repository }}-${{ github.ref_name }}
22+
cancel-in-progress: false
2123

2224
steps:
2325
- name: Checkout code
2426
uses: actions/checkout@v4
2527
with:
26-
token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
28+
persist-credentials: false
2729

2830
- name: Setup Node.js version
2931
uses: actions/setup-node@v4
3032
with:
31-
node-version: 20
32-
33-
- name: Enable yarn
34-
run: corepack enable
33+
node-version: 22
3534

3635
- name: Install dependencies
3736
run: yarn install --frozen-lockfile
@@ -40,11 +39,12 @@ jobs:
4039
run: |
4140
git config user.name "Uphold"
4241
git config user.email "bot@uphold.com"
42+
git config --global url.https://${{ secrets.RELEASE_GITHUB_TOKEN }}@github.com/.insteadOf https://github.com/
43+
44+
- name: Configure npm
45+
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.RELEASE_NPM_TOKEN }}
4346

4447
- name: Generate release
4548
env:
4649
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
47-
NPM_TOKEN: ${{ secrets.RELEASE_NPM_TOKEN }}
48-
run: |
49-
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
50-
npm run release -- --increment "${{ github.event.inputs.VERSION_BUMP }}" -V
50+
run: npm run release -- --increment "${{ github.event.inputs.VERSION_BUMP }}" -V

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,32 +44,32 @@
4444
},
4545
"devDependencies": {
4646
"@fastify/pre-commit": "^2.2.0",
47-
"@uphold/github-changelog-generator": "^3.4.0",
48-
"abavalidator": "^2.0.1",
49-
"bignumber.js": "^9.0.0",
47+
"@uphold/github-changelog-generator": "^4.0.2",
48+
"abavalidator": "^2.0.2",
49+
"bignumber.js": "^9.3.0",
5050
"cpf": "^2.0.1",
51-
"creditcard": "^0.1.2",
52-
"curp": "^1.2.3",
51+
"creditcard": "^0.1.3",
52+
"curp": "^1.3.1",
5353
"eslint": "~9.28.0",
5454
"eslint-config-uphold": "^6.5.2",
55-
"google-libphonenumber": "^3.2.35",
55+
"google-libphonenumber": "^3.2.41",
5656
"iban": "0.0.6",
5757
"isoc": "0.0.1",
58-
"moment": "^2.29.1",
58+
"moment": "^2.30.1",
5959
"prettier": "^3.5.3",
60-
"release-it": "^17.0.1",
61-
"tin-validator": "^1.0.0",
60+
"release-it": "^19.0.3",
61+
"tin-validator": "^1.1.0",
6262
"uk-modulus-checking": "0.0.3",
6363
"urijs": "^1.17.1",
6464
"validate-rfc": "^2.0.3",
65-
"validator": "^13.7.0"
65+
"validator": "^13.15.15"
6666
},
6767
"engines": {
6868
"node": ">=20"
6969
},
7070
"optionalPeerDependencies": {
7171
"abavalidator": ">=2 <3",
72-
"bignumber.js": ">=7 <=9.0.0",
72+
"bignumber.js": ">=7 <=9.3.0",
7373
"cpf": "^2.0.1",
7474
"creditcard": ">=0.0.1 <1.0.0",
7575
"curp": "^1.2.3",
@@ -81,7 +81,7 @@
8181
"uk-modulus-checking": "0.0.2",
8282
"urijs": ">=1 <2",
8383
"validate-rfc": "^2.0.3",
84-
"validator": ">=3 <6"
84+
"validator": ">=3 <14"
8585
},
8686
"pre-commit": [
8787
"lint"

test/asserts/taxpayer-identification-number-assert.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ describe('TaxpayerIdentificationNumberAssert', () => {
6868

6969
it('should accept a valid `tin`', ({ assert }) => {
7070
assert.doesNotThrow(() => {
71-
Assert.taxpayerIdentificationNumber().validate('123456789');
71+
Assert.taxpayerIdentificationNumber().validate('900700000');
7272
});
7373
});
7474

7575
it('should accept a correctly formatted `tin`', ({ assert }) => {
7676
assert.doesNotThrow(() => {
77-
Assert.taxpayerIdentificationNumber().validate('123-45-6789');
77+
Assert.taxpayerIdentificationNumber().validate('900-70-0000');
7878
});
7979
});
8080
});

0 commit comments

Comments
 (0)