Skip to content

Commit f044eec

Browse files
cicd: Update alpha 3 vuln-diff-action #TASK-7908
1 parent f8cb71b commit f044eec

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/compare-vulnerabilities.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,17 @@ jobs:
3030
runs-on: ${{ vars.UBUNTU_VERSION }}
3131

3232
steps:
33-
# 1) Checkout head branch only
3433
- name: Checkout head branch
3534
uses: actions/checkout@v4
3635
with:
3736
ref: ${{ github.event.inputs.branch_b }}
3837
fetch-depth: 0
3938
fetch-tags: true
39+
- name: Restore Puppeteer cache
40+
uses: actions/cache@v4
41+
with:
42+
path: ~/.cache/puppeteer
43+
key: puppeteer-${{ runner.os }}
4044

4145
- name: Set up JDK 8
4246
uses: actions/setup-java@v4
@@ -46,12 +50,19 @@ jobs:
4650
cache: 'maven'
4751
# 3) Run the action
4852
- name: Vulnerability Diff (Syft+Grype)
49-
uses: sec-open/[email protected].1
53+
uses: sec-open/[email protected].3
5054
with:
5155
base_ref: ${{ github.event.inputs.branch_a }} # pass 'develop'
5256
head_ref: ${{ github.event.inputs.branch_b }} # pass 'TASK-7908'
5357
html_logo_url: "https://zettagenomics.com/wp-content/uploads/2022/10/Zetta-reversed-out-full-logo-dark-background.png"
5458

59+
- name: Save Puppeteer cache
60+
if: always()
61+
uses: actions/cache@v4
62+
with:
63+
path: ~/.cache/puppeteer
64+
key: puppeteer-${{ runner.os }}
65+
5566

5667
# build_command: ""
5768
# write_summary: "true"

0 commit comments

Comments
 (0)