Compare commits

...

2 Commits

Author SHA1 Message Date
Asier Isayas
a1eb4df10d dependabot weekly digest 2026-02-09 08:17:42 -08:00
sindhuba
67250f0f6b Fix timeout for flaky tests (#2378)
* Add changes for Load more option to work

* Remove localhost

* Add Mongo Pagination tests

* Run npm format

* Fix timeout in tests

* Revert "Fix timeout in tests"

This reverts commit 418b81c490.

* Fix timeout in tests

* Minor fix

* Revert "Minor fix"

This reverts commit 87fe289e3a.

* Revert "Fix timeout in tests"

This reverts commit 11c5748a31.

* Fix timeout
2026-02-05 16:14:37 -08:00
2 changed files with 46 additions and 1 deletions

View File

@@ -0,0 +1,45 @@
name: Weekly Dependabot Alerts Email
on:
schedule:
- cron: '0 0 * * 0' # Triggers the workflow every Sunday at midnight UTC.
jobs:
send-email:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository code (optional for this task, but typical in workflows)
- name: Checkout repository
uses: actions/checkout@v3
# Step 2: Fetch Dependabot Alerts via GitHub API
- name: Fetch Dependabot Alerts
id: dependabot-alerts
run: |
curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/${{ github.repository }}/dependabot/alerts?state=open" > dependabot_alerts.json
# Step 3: Format the Dependabot Alerts
- name: Format Alerts as Email Body
id: format-alerts
run: |
alerts=$(cat dependabot_alerts.json | jq -r '.[] | "* **\(.securityVulnerability.package.name)**: \(.securityVulnerability.severity) severity, CVE-Id: [\(.securityVulnerability.cve)](https://cve.mitre.org/cve/\(.securityVulnerability.cve))\n \(.description)\n"')
echo "$alerts" > formatted_alerts.txt
# Step 4: Send the Email via Outlook SMTP (from DL1 to DL1 or DL2)
- name: Send Email
uses: dawidd6/action-send-mail@v3
with:
smtp-server: smtp.office365.com
smtp-port: 587
smtp-user: cdbportal@microsoft.com # Use DL1's email address
from: cdbportal@microsoft.com # The sender is DL1
to: "dl1@yourdomain.com" # This is the recipient DL1; can also use another DL (e.g., dl2@yourdomain.com)
subject: "Weekly Dependabot Vulnerabilities for ${{ github.repository }}"
body: |
**Weekly Dependabot Security Alerts**
Below are the new security vulnerabilities found in your dependencies:
${{ steps.format-alerts.outputs.alerts }}

View File

@@ -250,7 +250,7 @@ class TreeNode {
// Try three times to wait for the node to expand.
for (let i = 0; i < RETRY_COUNT; i++) {
try {
await tree.waitFor({ state: "visible" });
await tree.waitFor({ state: "visible", timeout: 30000 });
// The tree has expanded, let's get out of here
return true;
} catch {