File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 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) ->
12181218
12191219osv_scan (_ ) ->
12201220 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" ,
12241221
12251222 VendorSrcFiles = find_vendor_src_files (" ." ),
12261223 Packages = generate_vendor_info_package (VendorSrcFiles ),
12271224
12281225 % % Test if this works in a Github Workflow
12291226 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)).
12311229
12321230 % % OSVQuery = generate_osv_query(Packages),
12331231% % 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:
439439 # check that PRs do not introduce vulnerabilities in vendor dependencies
440440 - name : ' Vendor Vulnerability Scanning'
441441 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
444451
445452 # Upload the deps
446453 - name : " upload osv-scanner deps"
447454 uses :
actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # ratchet:actions/[email protected] 448455 with :
449456 name : converted-OSV-Scanner-deps
450- path : $PWD /osv-scanner.json
457+ path : /home/runner /osv-scanner.json
451458 retention-days : 2
452459
453460 scan-pr :
You can’t perform that action at this time.
0 commit comments