Skip to content

Commit 79672e3

Browse files
authored
html content
1 parent 0dd6cea commit 79672e3

1 file changed

Lines changed: 27 additions & 17 deletions

File tree

.github/workflows/actions.yml

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -55,30 +55,40 @@ jobs:
5555
server_port: 587
5656
username: ${{ secrets.GMAIL_USERNAME }}
5757
password: ${{ secrets.GMAIL_PASSWORD }}
58-
to: divijs75@gmail.com, divyanshbisht2005@gmail.com, akashsah2003@gmail.com
58+
to: divyanshbisht2005@gmail.com
5959
from: divyanshbisht2005@gmail.com
60-
subject: "Security Report Generation Complete for ${{ github.repository }}"
60+
subject: "Security Report Generated: ${{ github.repository }} - Run #${{ github.run_number }}"
61+
content_type: html
6162
body: |
62-
Hello,
63+
<html>
64+
<body style="font-family: Arial, sans-serif; line-height: 1.6;">
65+
<p>Hello,</p>
66+
<p>A new security report has been generated for the repository: <strong><code>${{ github.repository }}</code></strong>.</p>
6367
64-
A new security report has been generated for the repository: `${{ github.repository }}`.
68+
<h3>Details:</h3>
69+
<ul>
70+
<li><strong>Workflow Run ID:</strong> <code>${{ github.run_id }}</code></li>
71+
<li><strong>Workflow Run Number:</strong> <code>${{ github.run_number }}</code></li>
72+
<li><strong>Commit SHA:</strong> <code>${{ github.sha }}</code></li>
73+
<li><strong>Branch:</strong> <code>${{ github.ref_name }}</code></li>
74+
<li><strong>Generated At:</strong> <code>${{ format('{0:yyyy-MM-dd HH:mm:ss z}', github.event.repository.pushed_at) }}</code></li>
75+
</ul>
6576
66-
**Details:**
67-
- Workflow Run ID: `${{ github.run_id }}`
68-
- Workflow Run Number: `${{ github.run_number }}`
69-
- Commit SHA: `${{ github.sha }}`
70-
- Branch: `${{ github.ref_name }}`
71-
- Generated At: $(date)
77+
<p>The following artifacts have been uploaded to this workflow run and can
78+
be downloaded from the "Summary" tab of the workflow run on GitHub:</p>
7279
73-
The following artifacts have been uploaded to this workflow run and can be downloaded from the "Summary" tab of the workflow run on GitHub:
74-
- SBOM (Software Bill of Materials): `sbom-${{ github.run_id }}-${{ github.run_number }}.json`
75-
- Vulnerability Disclosure Report (if generated): `vulRep-${{ github.run_id }}-${{ github.run_number }}.vdr.json`
76-
- HTML Vulnerability Report: `vulRep-${{ github.run_id }}-${{ github.run_number }}.html`
80+
<ul>
81+
<li><strong>SBOM (Software Bill of Materials):</strong> <code>sbom-${{ github.run_id }}-${{ github.run_number }}.json</code></li>
82+
<li><strong>Vulnerability Disclosure Report (if generated):</strong> <code>vulRep-${{ github.run_id }}-${{ github.run_number }}.vdr.json</code></li>
83+
<li><strong>HTML Vulnerability Report:</strong> <code>vulRep-${{ github.run_id }}-${{ github.run_number }}.html</code></li>
84+
</ul>
7785
78-
Please log in to SBOMgen dashboard or GitHub to review the generated reports.
86+
<p>Please log in to SBOMGen or <a href="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}">GitHub</a> to review the generated reports.</p>
7987
80-
Best regards,
81-
SBOMGen
88+
<p>Best regards,<br>
89+
Team SBOMGen</p>
90+
</body>
91+
</html>
8292
# - name: Install Dependency
8393
# run: |
8494
# sudo apt-get install -y wkhtmltopdf

0 commit comments

Comments
 (0)