File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -22,26 +22,30 @@ jobs:
22
22
steps :
23
23
24
24
- uses : actions/checkout@v4
25
-
26
- - name : Set up pnpm
27
- uses : pnpm/action-setup@v4
25
+ with :
26
+ path : cdxgen_src
28
27
29
28
- name : cdxgen, custom-json-diff installs
30
29
shell : bash
31
30
env :
32
31
SHELL : bash
33
32
run : |
34
33
rm -rf original_snapshots new_snapshots src_repos
34
+ cd cdxgen_src
35
+ corepack enable pnpm
35
36
cdxgen_tarball=$(pnpm pack | tail -1)
36
37
npm install -g "$cdxgen_tarball"
37
- git clone https://github.com/appthreat/cdxgen-samples.git original_snapshots
38
+ cd ..
38
39
python3.12 -m venv .venv
39
- source .venv/bin/activate && pip install -r test/diff/requirements.txt
40
+ source .venv/bin/activate && pip install -r cdxgen_src/test/diff/requirements.txt
41
+ git clone https://github.com/appthreat/cdxgen-samples.git original_snapshots
42
+ cd original_snapshots
43
+ git checkout feature/expand_snapshots_3
40
44
41
45
- name : Generate scripts
42
46
run : |
43
47
source .venv/bin/activate
44
- python test/diff/generate.py
48
+ python cdxgen_src/ test/diff/generate.py
45
49
46
50
- name : Upload shell scripts generated as artifact
47
51
uses : actions/upload-artifact@v4
65
69
- name : Test BOMs
66
70
run : |
67
71
source .venv/bin/activate
68
- python test/diff/diff_tests.py --migrate-legacy
72
+ python cdxgen_src/ test/diff/diff_tests.py --migrate-legacy
69
73
if test -f new_snapshots/diffs.json; then
70
74
echo "status=FAILED" >> "$GITHUB_ENV"
71
75
fi
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ def build_args():
18
18
parser .add_argument (
19
19
'--repo-csv' ,
20
20
type = Path ,
21
- default = 'test/diff/repos.csv' ,
21
+ default = 'cdxgen_src/ test/diff/repos.csv' ,
22
22
help = 'Path to sources.csv' ,
23
23
dest = 'repo_csv'
24
24
)
You can’t perform that action at this time.
0 commit comments