From af67c064eb6ca151424d598598402c4d257c74a4 Mon Sep 17 00:00:00 2001 From: Vikrant Puppala Date: Fri, 17 Jul 2026 09:53:13 +0000 Subject: [PATCH] ci(security): drop HTML/email report, go artifact-only The Send Email step was already commented out (SMTP creds never provisioned). Remove the now-dead email machinery entirely -- the `Compose email body` step and the commented-out `Send Email` block -- and stop uploading the composed HTML report. The scheduled run now uploads only the machine-readable osv-out.json / all-findings.json for the planned cross-repo findings collator, matching the Go / Node / Python / JDBC gates. It still fails red on any finding. No change to the scan, the fail-closed gate logic, or the fail-on-any policy -- only the notification/report path. Co-authored-by: Isaac Signed-off-by: Vikrant Puppala --- .github/workflows/securityScan.yml | 70 ++++-------------------------- 1 file changed, 9 insertions(+), 61 deletions(-) diff --git a/.github/workflows/securityScan.yml b/.github/workflows/securityScan.yml index 7b45ed52..cefb774b 100644 --- a/.github/workflows/securityScan.yml +++ b/.github/workflows/securityScan.yml @@ -293,69 +293,17 @@ jobs: echo "Full step summary: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" exit 1 - - name: Compose email body - # See "Collect findings" above for why this step intentionally - # omits `-e`. - if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && steps.findings.outputs.total_findings != '0' - run: | - set -uo pipefail - { - echo "Kernel Security Scan Results" - echo "" - echo "

Security Vulnerabilities Found

" - echo "

${{ steps.findings.outputs.total_findings }} unsuppressed finding(s) on main.

" - echo "

All findings fail the run; document accepted risk via osv-scanner.toml.

" - echo "

Full reports: View Artifacts

" - echo "" - jq -r '.[] | - (if .display == "unscored" then "unscored" - elif .severity >= 7 then "high" - elif .severity >= 4 then "medium" - else "" end) as $cls | - "" - ' /tmp/all-findings.json - echo "
SeverityPackageIDs
\(.display)\(.pkg)\(.ids | join(", "))
" - echo "" - } > security-scan-report.html - - # Email notification deferred — the SMTP credentials path - # (SMTP_USERNAME / SMTP_PASSWORD / EMAIL_RECIPIENTS) hasn't - # been provisioned. The HTML report is still produced and - # uploaded as a run artifact (see `Upload reports` below), so - # triagers can pull it after a scheduled-run failure without - # needing the email. Re-enable when SMTP creds are wired up. - # - # - name: Send Email - # if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && steps.findings.outputs.total_findings != '0' - # uses: dawidd6/action-send-mail@4226df7daafa6fc901a43789c49bf7ab309066e7 # v3.11.0 - # with: - # server_address: smtp.gmail.com - # server_port: 465 - # username: ${{ secrets.SMTP_USERNAME }} - # password: ${{ secrets.SMTP_PASSWORD }} - # subject: Databricks SQL Kernel Security Scan - Vulnerabilities Found - # html_body: file://security-scan-report.html - # to: ${{ secrets.EMAIL_RECIPIENTS }} - # from: Kernel Security Scanner - # content_type: text/html - + # Notification is intentionally NOT done here (no email, no HTML + # report). A separate cross-repo action collates the uploaded raw + # osv-out.json / all-findings.json artifacts across all driver repos + # and sends a single digest -- parity with the Go / Node / Python / + # JDBC gates. This job's job is to (a) fail so the scheduled run is + # red when anything is found, and (b) upload the machine-readable + # findings for the collator to consume. - name: Fail on findings (scheduled/manual) if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && steps.findings.outputs.total_findings != '0' run: | - echo "::error::${{ steps.findings.outputs.total_findings }} unsuppressed OSV finding(s) on main. Download the security-scan-reports artifact for the HTML report." + echo "::error::${{ steps.findings.outputs.total_findings }} unsuppressed OSV finding(s) on main. Download the security-scan-reports artifact for the raw findings." exit 1 - name: Upload reports @@ -365,8 +313,8 @@ jobs: name: security-scan-reports path: | /tmp/osv-out.json + /tmp/all-findings.json /tmp/sboms/ - security-scan-report.html if-no-files-found: ignore # SBOMs/reports stick around long enough to triage a finding # without being part of the 90-day default retention.