Skip to content

Commit 02a198e

Browse files
authored
fix : pdf gen
1 parent 1fa7eb0 commit 02a198e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/actions.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ jobs:
5151
- name: Generate pdf
5252
run: |
5353
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
54+
xvfb-run wkhtmltopdf ${{ github.workspace }}/sbom.html ${{ github.workspace }}/sbom.pdf
5555
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
56+
xvfb-run wkhtmltopdf ${{ github.workspace }}/sbomv.html ${{ github.workspace }}/sbomv.pdf
5757
cat ${{ github.workspace }}/vulRep.html
58-
wkhtmltopdf ${{ github.workspace }}/vulRep.html ${{ github.workspace }}/vulRep.pdf
58+
xvfb-run wkhtmltopdf ${{ github.workspace }}/vulRep.html ${{ github.workspace }}/vulRep.pdf
5959
- name: Mail Reports
6060
uses: dawidd6/action-send-mail@v3
6161
with:
6262
server_address: smtp.gmail.com
6363
server_port: 587
6464
username: ${{ secrets.GMAIL_USERNAME }}
6565
password: ${{ secrets.GMAIL_PASSWORD }}
66-
to: divijs75@gmail.com, divyanshbisht2005@gmail.com, akashsah2003@gmail.com
66+
to: divyanshbisht2005@gmail.com
6767
from: divyanshbisht2005@gmail.com
6868
subject: "Latest security reports"
6969
body: Please find the latest security reports

0 commit comments

Comments
 (0)