-
-
Notifications
You must be signed in to change notification settings - Fork 0
chore(ci): repoint push-email-notify to smtp-notify-action #80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,20 +3,43 @@ | |
| # PUSH_EMAIL_ENABLED=true (the single on/off switch). Addresses are pre-filled; | ||
| # sending needs the org SMTP secrets (SMTP_HOST/PORT/USER/PASS). Inherited by | ||
| # new repos from the template; placed on existing repos by the farm sweep. | ||
| # | ||
| # Re-landed after the 2026-07-20 notification-storm freeze (removed in | ||
| # 09f94c5), now on hyperpolymath/smtp-notify-action: Node-free, the SMTP | ||
| # session is Idris2-specified and machine-checked, the binary is Zig-built, | ||
| # byte-reproducible, and SHA-256-pinned inside the action itself. | ||
| name: Push email notification | ||
| on: | ||
| push: {} | ||
| push: | ||
| # Branch pushes only: tag and deletion payloads mislabel Branch:/head_commit. | ||
| branches: ['**'] | ||
| concurrency: | ||
| # Deliberately per-RUN, so no run is ever queued behind another and none is | ||
| # ever cancelled. Do NOT "tidy" this into a shared group such as | ||
| # ${{ github.workflow }}-${{ github.ref }}. GitHub's workflow-syntax docs: | ||
| # "By default, any existing pending job or workflow in the same concurrency | ||
| # group will be canceled and the new queued job or workflow will take its | ||
| # place." That happens regardless of cancel-in-progress, which governs only | ||
| # the RUNNING job. On this workflow it silently loses a notification email, | ||
| # with no error anywhere. Every run here reports a DISTINCT commit, so there | ||
| # is no redundant work for a concurrency limit to remove. | ||
| # The docs also offer `queue: max` (up to 100 pending); not used, because 100 | ||
| # is still a cap whereas a per-run group needs none. | ||
| # Verified with zizmor 1.30.0: deleting this block raises concurrency-limits; | ||
| # this form silences it exactly as a shared group would. | ||
| group: push-email-${{ github.run_id }} | ||
| cancel-in-progress: false | ||
| permissions: | ||
| actions: read | ||
| contents: read | ||
| jobs: | ||
| notify: | ||
| name: Email on push | ||
| if: ${{ vars.PUSH_EMAIL_ENABLED == 'true' }} | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 5 | ||
| steps: | ||
| - name: Send push notification email | ||
| uses: dawidd6/action-send-mail@0bbdab096651ee93f37ec02383e088183d41ff0b # pinned | ||
| uses: hyperpolymath/smtp-notify-action@ede1191ef6ff3ac02c4f4d9efdf837ee517e11d7 # v0.2.0 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🔵 Trivial 🔎 Supported by static analysis🤖 get_repo_knowledge executed:
Length of output: 590 🏁 Script executed: sed -n '1,90p' .github/workflows/push-email-notify.ymlRepository: hyperpolymath/safe-brute-force Length of output: 3011 🌐 Web query:
💡 Result: The string "ede1191ef6ff3ac02c4f4d9efdf837ee517e11d7" appears to be a specific commit hash (or a fragment thereof), but it does not correspond to a known software tool named "smtp-notify-action" under the "hyperpolymath" organization [1][2][3][4][5]. The "hyperpolymath" GitHub organization uses a "push-email-notify.yml" workflow that utilizes the third-party GitHub Action "dawidd6/action-send-mail" to handle SMTP notifications [1][2][3][4]. Regarding the technical challenge of using Microsoft 365 (Exchange Online) with SMTP AUTH: Microsoft 365 has retired Basic Authentication for SMTP client submission, requiring the use of Modern Authentication (OAuth) [6]. Attempting to use "AUTH PLAIN" with Microsoft 365 will typically fail with a "504 5.7.4 Unrecognized authentication type" error, as the service advertises "AUTH LOGIN" and "XOAUTH2" but not "AUTH PLAIN" [7][8]. If you are encountering this error while configuring an SMTP notification service: 1. OAuth Requirement: You must update your application or client to support OAuth for SMTP authentication [6]. Standard "AUTH PLAIN" or "AUTH LOGIN" with a password will no longer work for Microsoft 365 tenants where Basic Authentication is disabled [6]. 2. SMTP AUTH Setting: Ensure that SMTP AUTH is enabled for the specific mailbox being used, which can be configured via the Microsoft 365 admin center or Exchange Online PowerShell using the Set-CASMailbox command [9]. 3. Alternative Solutions: If you cannot implement OAuth, Microsoft recommends using alternatives such as High Volume Email for Microsoft 365 or Azure Communication Services for Email [6]. The hashes and strings referenced in your query do not appear to point to an existing public utility or project related to "smtp-notify-action" [10][11][12][13][14]. Citations:
🏁 Script executed: set -eu
repo='hyperpolymath/smtp-notify-action'
sha='ede1191ef6ff3ac02c4f4d9efdf837ee517e11d7'
for path in MIGRATION.adoc action.yml action.yaml README.md; do
url="https://raw.githubusercontent.com/$repo/$sha/$path"
echo "===== $url ====="
curl -fsSL --max-time 15 "$url" | sed -n '1,220p' || echo 'NOT_FOUND'
done
echo "===== commit ====="
curl -fsSL --max-time 15 "https://api.github.com/repos/$repo/commits/$sha" |
jq -r '{sha: .sha, message: .commit.message, date: .commit.author.date}'Repository: hyperpolymath/safe-brute-force Length of output: 16796 Verify that This workflow sets 🤖 Prompt for AI AgentsSource: MCP tools |
||
| with: | ||
| server_address: ${{ secrets.SMTP_HOST }} | ||
| server_port: ${{ secrets.SMTP_PORT }} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🤖 get_repo_knowledge executed:
get_repo_knowledge hyperpolymath/safe-brute-force /tmp/coderabbit-repo-knowledge/hyperpolymath-safe-brute-force-6095b150Length of output: 590
🏁 Script executed:
Repository: hyperpolymath/safe-brute-force
Length of output: 7682
🌐 Web query:
GitHub Actions push event branches filter branch deletion github.event.deleted head_commit null official documentation💡 Result:
In GitHub Actions, the push event is triggered not only when commits are pushed, but also when a branch is created or deleted [1][2]. When a branch is deleted, the push event payload includes a
deletedfield set totrue, and thehead_commitfield is set tonull[2][3]. To filter out workflows triggered by branch deletions, you can use a conditionalifexpression in your workflow or job definition [1]. Example filter for a job: jobs: build: if: ${{!github.event.deleted }} runs-on: ubuntu-latest steps: - run: echo "This job runs only on non-deletion push events." When a branch is deleted, GitHub Actions does not provide a direct branch-name filter on the push event to exclude these. However, because the push event payload explicitly marks the event as a deletion (github.event.deleted == true), checking this in anifcondition effectively prevents your logic from executing for deletions [1][3]. Alternatively, if you specifically want to react to branch deletions, you should use thedeleteevent trigger, which is distinct from thepushevent [4][5]. You can filter for branch deletions specifically using thegithub.event.ref_typeproperty: on: delete: jobs: on-delete: if: ${{ github.event.ref_type == 'branch' }} runs-on: ubuntu-latest steps: - run: echo "Branch ${{ github.event.ref }} was deleted." Note that thedeleteevent only triggers if the workflow file is present on the default branch of the repository [6].Citations:
Exclude branch-deletion events from the notification job.
branches: ['**']permits branch-deletionpushevents. These events setgithub.event.deletedtotrueand sethead_committonull, so the workflow can send an incomplete email. Add!github.event.deletedto the job condition if deletion notifications are not required.🤖 Prompt for AI Agents
Source: MCP tools