File tree 2 files changed +12
-7
lines changed
2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -1218,16 +1218,14 @@ generate_vendor_purl(Package) ->
1218
1218
1219
1219
osv_scan (_ ) ->
1220
1220
application :ensure_all_started ([ssl , inets ]),
1221
- URI = " https://api.osv.dev/v1/querybatch" ,
1222
- Format = " application/x-www-form-urlencoded" ,
1223
- File = " osv-scanner.json" ,
1224
1221
1225
1222
VendorSrcFiles = find_vendor_src_files (" ." ),
1226
1223
Packages = generate_vendor_info_package (VendorSrcFiles ),
1227
1224
1228
1225
% % Test if this works in a Github Workflow
1229
1226
OSVQueryResults = generate_osv_results (Packages ),
1230
- file :write_file (File , json :format (OSVQueryResults )).
1227
+ io :format (" ~s " , [json :format (OSVQueryResults )]).
1228
+ % % file:write_file(File, json:format(OSVQueryResults)).
1231
1229
1232
1230
% % OSVQuery = generate_osv_query(Packages),
1233
1231
% % io:format("[OSV] Information sent~n~s~n", [json:format(OSVQuery)]),
Original file line number Diff line number Diff line change @@ -439,15 +439,22 @@ jobs:
439
439
# check that PRs do not introduce vulnerabilities in vendor dependencies
440
440
- name : ' Vendor Vulnerability Scanning'
441
441
run : |
442
- docker run -v $PWD/:/github -v $HOME:$HOME otp \
443
- "/github/.github/scripts/otp-compliance.es sbom osv-scan"
442
+ docker run -v $PWD/:/github otp \
443
+ "/github/.github/scripts/otp-compliance.es sbom osv-scan > /github/osv-scanner.json"
444
+
445
+
446
+ # - name: Find osv-scanner.json
447
+ # run: |
448
+ # OSV=$(find . -name osv-scanner.json)
449
+ # echo "all=${OSV}" >> $GITHUB_OUTPUT
450
+ # cat $GITHUB_OUTPUT
444
451
445
452
# Upload the deps
446
453
- name : " upload osv-scanner deps"
447
454
uses :
actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # ratchet:actions/[email protected]
448
455
with :
449
456
name : converted-OSV-Scanner-deps
450
- path : $PWD /osv-scanner.json
457
+ path : /home/runner /osv-scanner.json
451
458
retention-days : 2
452
459
453
460
scan-pr :
You can’t perform that action at this time.
0 commit comments