Skip to content

Commit 1b9c95f

Browse files
committed
chore: bump GHA workflow versions
1 parent d349baa commit 1b9c95f

8 files changed

Lines changed: 105 additions & 52 deletions

File tree

.github/workflows/pr-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
fetch-depth: 0
2828

2929
- name: Set up Node.js
30-
uses: actions/setup-node@v5
30+
uses: actions/setup-node@v6
3131
with:
3232
node-version: 24
3333

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
fetch-depth: 0
3131

3232
- name: Install node 24
33-
uses: actions/setup-node@v5
33+
uses: actions/setup-node@v6
3434
with:
3535
node-version: 24
3636
cache: npm
@@ -76,7 +76,7 @@ jobs:
7676
steps:
7777
- name: Get releasebranch.txt artifact from Release pipeline
7878
if: github.event_name == 'workflow_run'
79-
uses: actions/download-artifact@v5
79+
uses: actions/download-artifact@v7
8080
with:
8181
name: releasebranch.txt
8282
run-id: ${{ github.event.workflow_run.id }}
@@ -96,7 +96,7 @@ jobs:
9696
fetch-depth: 0
9797

9898
- name: Install node 24
99-
uses: actions/setup-node@v5
99+
uses: actions/setup-node@v6
100100
with:
101101
node-version: 24
102102
cache: npm

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
token: ${{ secrets.GITHUB_TOKEN }}
3131

3232
- name: Install node 24
33-
uses: actions/setup-node@v5
33+
uses: actions/setup-node@v6
3434
with:
3535
node-version: 24
3636
cache: npm
@@ -64,7 +64,7 @@ jobs:
6464
git push origin "$BRANCH"
6565
echo "$BRANCH" > releasebranch.txt
6666
67-
- uses: actions/upload-artifact@v5
67+
- uses: actions/upload-artifact@v6
6868
with:
6969
name: releasebranch.txt
7070
path: releasebranch.txt

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/checkout@v6
2929

3030
- name: Install node ${{ matrix.node }}
31-
uses: actions/setup-node@v5
31+
uses: actions/setup-node@v6
3232
with:
3333
node-version: ${{ matrix.node }}
3434
cache: npm
@@ -66,10 +66,10 @@ jobs:
6666
go-version: '1.20.1'
6767

6868
- name: Setup Gradle
69-
uses: gradle/actions/setup-gradle@v4
69+
uses: gradle/actions/setup-gradle@v5
7070

7171
- name: Setup syft
72-
uses: jaxxstorm/action-install-gh-release@v1.10.0
72+
uses: jaxxstorm/action-install-gh-release@v2.1.0
7373
with:
7474
repo: anchore/syft
7575
platform: linux
@@ -96,7 +96,7 @@ jobs:
9696

9797
- name: Upload coverage reports
9898
if: ${{ matrix.node == env.MAIN_NODE_VER }}
99-
uses: actions/upload-artifact@v4
99+
uses: actions/upload-artifact@v6
100100
with:
101101
name: coverage
102102
path: ./coverage/coverage-final.json

package-lock.json

Lines changed: 82 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"fast-xml-parser": "^5.3.4",
5151
"help": "^3.0.2",
5252
"https-proxy-agent": "^7.0.6",
53-
"node-fetch": "^2.7.0",
53+
"node-fetch": "^3.3.2",
5454
"packageurl-js": "~1.0.2",
5555
"yargs": "^17.7.2"
5656
},

test/providers/oci_images.test.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import fs from 'fs';
22

33
import { expect } from "chai";
4+
import * as chai from "chai";
5+
import deepEqualInAnyOrder from 'deep-equal-in-any-order';
46
import { useFakeTimers } from "sinon";
57

68
import { generateImageSBOM, parseImageRef } from '../../src/oci_image/utils.js';
79

10+
chai.use(deepEqualInAnyOrder);
11+
812
let clock;
913
suite('testing the OCI image data provider', () => {
1014
[
@@ -14,12 +18,12 @@ suite('testing the OCI image data provider', () => {
1418
].forEach(imageRef => {
1519
test(`verify OCI image sbom provided with scenario ${imageRef}`, () => {
1620
let expectedSbom = fs.readFileSync(`test/providers/tst_manifests/image/${imageRef}.json`).toString().trim()
17-
expectedSbom = JSON.stringify(JSON.parse(expectedSbom), null, 4)
21+
expectedSbom = JSON.parse(expectedSbom)
1822

1923
let providedSbom = generateImageSBOM(parseImageRef(imageRef))
2024
providedSbom['metadata'] = null
2125
providedSbom['serialNumber'] = null
22-
expect(JSON.stringify(providedSbom, null, 4).trimEnd()).to.deep.equal(expectedSbom)
26+
expect(providedSbom, null, 4).to.deep.equal(expectedSbom)
2327
}).timeout(40000)
2428
});
2529

@@ -36,4 +40,4 @@ suite('testing the OCI image data provider', () => {
3640
}).timeout(10000)
3741
})
3842

39-
}).beforeAll(() => clock = useFakeTimers(new Date('2023-08-07T00:00:00.000Z'))).afterAll(()=> clock.restore());
43+
}).beforeAll(() => clock = useFakeTimers(new Date('2023-08-07T00:00:00.000Z'))).afterAll(() => clock.restore());

test/providers/tst_manifests/image/httpd@sha256:4b5cb7697fea2aa6d398504c381b693a54ae9ad5e6317fcdbb7a2d9b8c3b1364.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10783,6 +10783,11 @@
1078310783
"license": {
1078410784
"id": "Artistic-2.0"
1078510785
}
10786+
},
10787+
{
10788+
"license": {
10789+
"name": "Artistic-dist"
10790+
}
1078610791
},
1078710792
{
1078810793
"license": {
@@ -10903,11 +10908,6 @@
1090310908
"license": {
1090410909
"name": "Unicode"
1090510910
}
10906-
},
10907-
{
10908-
"license": {
10909-
"name": "Artistic-dist"
10910-
}
1091110911
}
1091210912
],
1091310913
"cpe": "cpe:2.3:a:perl-base:perl-base:5.28.1-6\\+deb10u1:*:*:*:*:*:*:*",

0 commit comments

Comments
 (0)