Skip to content

Commit 5d9761c

Browse files
authored
debugging
1 parent 7c79cf4 commit 5d9761c

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/actions.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,30 +32,34 @@ jobs:
3232
# jq . ${{ github.workspace }}/sbom.json
3333
depscan --bom ${{ github.workspace }}/sbom.json -o ${{ github.workspace }}/vulRep.html
3434
- name: Upload SBOM
35-
uses: actions/upload-artifact@v3
35+
uses: actions/upload-artifact@v4
3636
with:
3737
name: sbom-${{ github.run_id }}-${{ github.run_number }}.json
3838
path: ${{ github.workspace }}/sbom.json
3939
- name: Upload vdr
40-
uses: actions/upload-artifact@v3
40+
uses: actions/upload-artifact@v4
4141
with:
4242
name: vulRep-${{ github.run_id }}-${{ github.run_number }}.vdr.json
4343
path: ${{ github.workspace }}/sbom.vdr.json
4444
- name: Upload html
45-
uses: actions/upload-artifact@v3
45+
uses: actions/upload-artifact@v4
4646
with:
4747
name: vulRep-${{ github.run_id }}-${{ github.run_number }}.html
4848
path: ${{ github.workspace }}/vulRep.html
49+
- name: Debug File Paths
50+
run: ls -lah ${{ github.workspace }}/
4951
- name: Install Dependency
5052
run: sudo apt-get install wkhtmltopdf
5153
- name: Generate pdf
5254
run: |
5355
echo "<html><body><pre>$(cat ${{ github.workspace }}/sbom.json)</pre></body></html>" > ${{ github.workspace }}/sbom.html
54-
wkhtmltopdf ${{ github.workspace }}/sbom.html ${{ github.workspace }}/sbom.pdf
56+
wkhtmltopdf --enable-local-file-access file://${{ github.workspace }}/sbom.html ${{ github.workspace }}/sbom.pdf
57+
5558
echo "<html><body><pre>$(cat ${{ github.workspace }}/sbom.vdr.json)</pre></body></html>" > ${{ github.workspace }}/sbomv.html
56-
wkhtmltopdf ${{ github.workspace }}/sbomv.html ${{ github.workspace }}/sbomv.pdf
59+
wkhtmltopdf --enable-local-file-access file://${{ github.workspace }}/sbomv.html ${{ github.workspace }}/sbomv.pdf
60+
5761
cat ${{ github.workspace }}/vulRep.html
58-
wkhtmltopdf ${{ github.workspace }}/vulRep.html ${{ github.workspace }}/vulRep.pdf
62+
wkhtmltopdf --enable-local-file-access file://${{ github.workspace }}/vulRep.html ${{ github.workspace }}/vulRep.pdf
5963
- name: Mail Reports
6064
uses: dawidd6/action-send-mail@v3
6165
with:

0 commit comments

Comments
 (0)