Skip to content

Commit c555cdf

Browse files
authored
chore: bump GHA workflow versions (#368)
1 parent d349baa commit c555cdf

File tree

7 files changed

+97
-47
lines changed

7 files changed

+97
-47
lines changed

.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: 5 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,14 +66,15 @@ 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
7676
arch: amd64
77+
tag: v1.41.1
7778

7879
- name: Setup skopeo
7980
run: sudo apt update && sudo apt-get -y install skopeo
@@ -96,7 +97,7 @@ jobs:
9697

9798
- name: Upload coverage reports
9899
if: ${{ matrix.node == env.MAIN_NODE_VER }}
99-
uses: actions/upload-artifact@v4
100+
uses: actions/upload-artifact@v6
100101
with:
101102
name: coverage
102103
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ suite('testing the OCI image data provider', () => {
1414
].forEach(imageRef => {
1515
test(`verify OCI image sbom provided with scenario ${imageRef}`, () => {
1616
let expectedSbom = fs.readFileSync(`test/providers/tst_manifests/image/${imageRef}.json`).toString().trim()
17-
expectedSbom = JSON.stringify(JSON.parse(expectedSbom), null, 4)
17+
expectedSbom = JSON.parse(expectedSbom)
1818

1919
let providedSbom = generateImageSBOM(parseImageRef(imageRef))
2020
providedSbom['metadata'] = null
2121
providedSbom['serialNumber'] = null
22-
expect(JSON.stringify(providedSbom, null, 4).trimEnd()).to.deep.equal(expectedSbom)
22+
expect(providedSbom, null, 4).to.deep.equal(expectedSbom)
2323
}).timeout(40000)
2424
});
2525

@@ -36,4 +36,4 @@ suite('testing the OCI image data provider', () => {
3636
}).timeout(10000)
3737
})
3838

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

0 commit comments

Comments
 (0)