Skip to content

Commit d6ed9df

Browse files
authored
Merge pull request #5 from kasuvy/APIGOV-30670
APIGOV-30670 Security Updates
2 parents 9a5e4f5 + 034b68d commit d6ed9df

6 files changed

Lines changed: 579 additions & 554 deletions

File tree

.github/workflows/build.yml

Lines changed: 50 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,76 @@ jobs:
77
Lint:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1111
with:
1212
fetch-depth: 0
13-
- uses: actions/setup-node@v3
13+
- uses: actions/setup-node@v4
1414
with:
15-
node-version: '16.x'
15+
node-version: "20.x"
1616
- name: Install dependencies
1717
run: yarn
1818
- name: Lint
1919
run: yarn run lint
2020

21-
Test:
21+
MacOsTest:
2222
needs: Lint
2323
name: ${{ matrix.os }} ${{ matrix.nodeVersion }} Tests
2424
runs-on: ${{ matrix.os }}
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
nodeVersion: [ '14.19.3', '16.15.1', '18.4.0' ]
29-
os: [ macos-latest, ubuntu-latest, windows-latest ]
28+
nodeVersion: ["20.19.2", "22.16.0"]
29+
os: [macos-latest]
3030
steps:
31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
3232
with:
3333
fetch-depth: 0
34-
- uses: actions/setup-node@v3
34+
- uses: actions/setup-node@v4
3535
with:
3636
node-version: ${{ matrix.nodeVersion }}
3737
- name: Install dependencies
3838
run: yarn
3939
- name: Run tests
4040
run: yarn run test
41+
WindowsTest:
42+
needs: Lint
43+
name: ${{ matrix.os }} ${{ matrix.nodeVersion }} Tests
44+
runs-on: ${{ matrix.os }}
45+
strategy:
46+
fail-fast: false
47+
matrix:
48+
nodeVersion: ["20.19.2", "22.16.0"]
49+
os: [windows-latest]
50+
steps:
51+
- uses: actions/checkout@v2
52+
with:
53+
fetch-depth: 0
54+
- uses: actions/setup-node@v2
55+
with:
56+
node-version: ${{ matrix.nodeVersion }}
57+
- name: Install dependencies
58+
run: yarn
59+
- name: Run tests
60+
run: yarn run test
61+
UbuntuTest:
62+
needs: Lint
63+
name: ${{ matrix.os }} ${{ matrix.nodeVersion }} Tests
64+
runs-on: ${{ matrix.os }}
65+
strategy:
66+
fail-fast: false
67+
matrix:
68+
nodeVersion: ["20.19.2", "22.16.0"]
69+
os: [ubuntu-latest]
70+
steps:
71+
- uses: actions/checkout@v4
72+
with:
73+
fetch-depth: 0
74+
- uses: actions/setup-node@v4
75+
with:
76+
node-version: ${{ matrix.nodeVersion }}
77+
- name: Install libsecret
78+
run: sudo apt-get install -y libsecret-1-0
79+
- name: Install dependencies
80+
run: yarn
81+
- name: Run tests
82+
run: yarn run test

CHANGELOG.md

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,62 @@
1+
# v4.0.0 (June 18, 2025)
2+
3+
- BREAKING CHANGE: Require Node.js 20.18.2 LTS or newer.
4+
- chore: Updated dependencies.
5+
16
# v3.0.1 (July 7, 2022)
27

3-
* fix: Added missing `src` directory. Doh!
8+
- fix: Added missing `src` directory. Doh!
49

510
# v3.0.0 (July 7, 2022)
611

7-
* BREAKING CHANGE: Require Node.js 14.15.0 LTS or newer.
8-
* BREAKING CHANGE: Changed package to a ES module.
9-
* chore: Updated dependencies.
12+
- BREAKING CHANGE: Require Node.js 14.15.0 LTS or newer.
13+
- BREAKING CHANGE: Changed package to a ES module.
14+
- chore: Updated dependencies.
1015

1116
# v2.0.0 (Feb 15, 2022)
1217

13-
* BREAKING CHANGE: Require Node.js 12.13.0 LTS or newer.
14-
* fix: Fixed handling of 404 requests when getting latest version.
15-
* chore: Updated dependencies.
18+
- BREAKING CHANGE: Require Node.js 12.13.0 LTS or newer.
19+
- fix: Fixed handling of 404 requests when getting latest version.
20+
- chore: Updated dependencies.
1621

1722
# v1.2.1 (Jun 8, 2021)
1823

19-
* fix: Writing a file with a mode was applying the mode to the file and newly created directories.
20-
* fix: Default new directories to mode 777.
24+
- fix: Writing a file with a mode was applying the mode to the file and newly created directories.
25+
- fix: Default new directories to mode 777.
2126

2227
# v1.2.0 (Jun 7, 2021)
2328

24-
* feat: Added `applyOwner` flag with default of `true` which sets the owner of the metadata file
25-
to the owner of closest existing parent directory to protect against commands run as sudo.
26-
* chore: Updated dependencies.
29+
- feat: Added `applyOwner` flag with default of `true` which sets the owner of the metadata file
30+
to the owner of closest existing parent directory to protect against commands run as sudo.
31+
- chore: Updated dependencies.
2732

2833
# v1.1.2 (Jan 25, 2021)
2934

30-
* fix: Always recalculate the update available flag and write the results to disk in order to
31-
prevent a stale update available flag. ([CLI-106](https://jira.axway.com/browse/CLI-106))
32-
* chore: Updated dependencies.
35+
- fix: Always recalculate the update available flag and write the results to disk in order to
36+
prevent a stale update available flag. ([CLI-106](https://jira.axway.com/browse/CLI-106))
37+
- chore: Updated dependencies.
3338

3439
# v1.1.1 (Jan 5, 2021)
3540

36-
* chore: Updated dependencies.
41+
- chore: Updated dependencies.
3742

3843
# v1.1.0 (Dec 1, 2020)
3944

40-
* fix: Bumped minimum Node.js requirement to 10.19.0 to prevent warnings on install.
41-
* chore: Updated dependencies.
45+
- fix: Bumped minimum Node.js requirement to 10.19.0 to prevent warnings on install.
46+
- chore: Updated dependencies.
4247

4348
# v1.0.2 (Nov 30, 2020)
4449

45-
* chore: Updated dependencies.
50+
- chore: Updated dependencies.
4651

4752
# v1.0.1 (Nov 9, 2020)
4853

49-
* fix: Fixed typo that caused npm to be checked every time.
54+
- fix: Fixed typo that caused npm to be checked every time.
5055

5156
# v1.0.0 (Nov 9, 2020)
5257

53-
* Initial release with support for:
54-
- Fetching the latest version for a specific dist tag
55-
- Fetches latest version from npm every so often
56-
- Persist the update metadata
57-
- HTTP proxy support
58+
- Initial release with support for:
59+
- Fetching the latest version for a specific dist tag
60+
- Fetches latest version from npm every so often
61+
- Persist the update metadata
62+
- HTTP proxy support

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
library 'pipeline-library'
33

44
runNPMPackage {
5-
nodeVersions = [ '14.19.3', '16.15.1', '18.4.0' ]
5+
nodeVersions = [ '20.19.2', '22.16.0' ]
66
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "check-kit",
3-
"version": "3.0.1",
3+
"version": "4.0.0",
44
"description": "Checks if a newer version is available for command line interfaces",
55
"type": "module",
66
"exports": "./src/index.js",
@@ -28,7 +28,7 @@
2828
"test": "npm run lint && mocha test/**/test-*.js --reporter spec"
2929
},
3030
"dependencies": {
31-
"@axway/amplify-request": "^3.0.10",
31+
"@axway/amplify-request": "^4.0.2",
3232
"ci-info": "^3.3.2",
3333
"fs-extra": "^10.1.0",
3434
"registry-auth-token": "5.0.1",
@@ -55,6 +55,6 @@
5555
"url": "git://github.com/appcelerator/check-kit.git"
5656
},
5757
"engines": {
58-
"node": ">=14.15.0"
58+
"node": ">=20.18.2"
5959
}
6060
}

test/test-check-kit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ describe('check-kit', function () {
103103
it('should error if package.json is malformed', async () => {
104104
await expect(check({
105105
pkg: path.resolve(__dirname, 'fixtures/malformed/package.json')
106-
})).to.eventually.be.rejectedWith(Error, 'Failed to parse package.json: Unexpected token { in JSON at position 1');
106+
})).to.eventually.be.rejectedWith(Error, 'Failed to parse package.json: Expected property name or \'}\' in JSON at position 1');
107107
});
108108

109109
it('should error if pkg is not an object', async () => {
@@ -342,7 +342,7 @@ describe('check-kit', function () {
342342
version: '1.2.3'
343343
},
344344
registryUrl: 'http://127.0.0.1:1337'
345-
})).to.eventually.be.rejectedWith(Error, /^Unexpected token { in JSON at position/);
345+
})).to.eventually.be.rejectedWith(Error, /^Expected property name or '}' in JSON at position 1/);
346346
});
347347

348348
it('should error if registry returned non-object JSON response', async () => {

0 commit comments

Comments
 (0)