Skip to content

Commit 9356865

Browse files
chore(ci): repoint push-email-notify to smtp-notify-action (#53)
Replaces `dawidd6/action-send-mail` with `hyperpolymath/smtp-notify-action` v0.2.0 (tag commit `ede1191ef6ff3ac02c4f4d9efdf837ee517e11d7`), per the 2026-09-02 ruling (standards spec §5.5/§9, PR metadatastician/standards#725). The whole file is replaced with the `rsr-template-repo` canonical, which — besides the `uses:` line — restricts the trigger to branch pushes (tag and deletion payloads mislabel `Branch:`/`head_commit`), sets `timeout-minutes: 5`, carries a deliberately per-run `concurrency` group, and grants only `contents: read`. **How many of those are actual changes here depends on how far this repo's copy had drifted — read the diff, not this list.** Dormant gating on `vars.PUSH_EMAIL_ENABLED == 'true'` is unchanged. Line 1 SPDX header kept as it was. Engine: `.git-private-farm/scripts/smtp-notify-sweep.sh`. Verification for this repo: `regime=lock pristine=invalid post=valid repair changed=.github/workflows/actions.lock,.github/workflows/push-email-notify.yml, sig=G 9876757 canon=543fc1474b54 base=main` (`pristine`/`post` = `gh actions-lock --no-fix` validity before/after; `repair` = the lock was already invalid before this change and is valid after it.) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 6877d65 commit 9356865

2 files changed

Lines changed: 39 additions & 16 deletions

File tree

‎.github/workflows/actions.lock‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,29 @@
33
# Docs: https://gh.io/actions-lockfile
44
version: 'v0.0.2'
55
workflows:
6+
'.github/workflows/codeql.yml':
7+
- 'actions/checkout@v7.0.1'
8+
- 'github/codeql-action@v4.37.9'
69
'.github/workflows/governance.yml': []
710
'.github/workflows/hypatia-scan.yml': []
811
'.github/workflows/label-triage.yml': []
912
'.github/workflows/labels.yml': []
10-
'.github/workflows/secret-scanner.yml': []
11-
'.github/workflows/codeql.yml':
12-
- 'actions/checkout@v7.0.1'
13-
- 'github/codeql-action@v4.37.7'
1413
'.github/workflows/push-email-notify.yml':
15-
- 'dawidd6/action-send-mail@v3.12.0'
14+
- 'hyperpolymath/smtp-notify-action@v0.2.0'
15+
'.github/workflows/secret-scanner.yml': []
1616
dependencies:
1717
'actions/checkout@v7.0.1':
1818
ref: 'v7.0.1'
1919
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
2020
owner_id: 44036562
2121
repo_id: 197814629
22-
'dawidd6/action-send-mail@v3.12.0':
23-
ref: 'v3.12.0'
24-
commit: 'sha1-0bbdab096651ee93f37ec02383e088183d41ff0b'
25-
owner_id: 9713907
26-
repo_id: 222439721
27-
'github/codeql-action@v4.37.7':
28-
ref: 'v4.37.7'
29-
commit: 'sha1-ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd'
22+
'github/codeql-action@v4.37.9':
23+
ref: 'v4.37.9'
24+
commit: 'sha1-cdf488f595d80d6e07e03d4674febd5ab45fa938'
3025
owner_id: 9919
3126
repo_id: 259445878
27+
'hyperpolymath/smtp-notify-action@v0.2.0':
28+
ref: 'v0.2.0'
29+
commit: 'sha1-ede1191ef6ff3ac02c4f4d9efdf837ee517e11d7'
30+
owner_id: 6759885
31+
repo_id: 1352485172

‎.github/workflows/push-email-notify.yml‎

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,43 @@
44
# PUSH_EMAIL_ENABLED=true (the single on/off switch). Addresses are pre-filled;
55
# sending needs the org SMTP secrets (SMTP_HOST/PORT/USER/PASS). Inherited by
66
# new repos from the template; placed on existing repos by the farm sweep.
7+
#
8+
# Re-landed after the 2026-07-20 notification-storm freeze (removed in
9+
# 09f94c5), now on hyperpolymath/smtp-notify-action: Node-free, the SMTP
10+
# session is Idris2-specified and machine-checked, the binary is Zig-built,
11+
# byte-reproducible, and SHA-256-pinned inside the action itself.
712
name: Push email notification
813
on:
9-
push: {}
14+
push:
15+
# Branch pushes only: tag and deletion payloads mislabel Branch:/head_commit.
16+
branches: ['**']
17+
concurrency:
18+
# Deliberately per-RUN, so no run is ever queued behind another and none is
19+
# ever cancelled. Do NOT "tidy" this into a shared group such as
20+
# ${{ github.workflow }}-${{ github.ref }}. GitHub's workflow-syntax docs:
21+
# "By default, any existing pending job or workflow in the same concurrency
22+
# group will be canceled and the new queued job or workflow will take its
23+
# place." That happens regardless of cancel-in-progress, which governs only
24+
# the RUNNING job. On this workflow it silently loses a notification email,
25+
# with no error anywhere. Every run here reports a DISTINCT commit, so there
26+
# is no redundant work for a concurrency limit to remove.
27+
# The docs also offer `queue: max` (up to 100 pending); not used, because 100
28+
# is still a cap whereas a per-run group needs none.
29+
# Verified with zizmor 1.30.0: deleting this block raises concurrency-limits;
30+
# this form silences it exactly as a shared group would.
31+
group: push-email-${{ github.run_id }}
32+
cancel-in-progress: false
1033
permissions:
11-
actions: read
1234
contents: read
1335
jobs:
1436
notify:
1537
name: Email on push
1638
if: ${{ vars.PUSH_EMAIL_ENABLED == 'true' }}
1739
runs-on: ubuntu-latest
40+
timeout-minutes: 5
1841
steps:
1942
- name: Send push notification email
20-
uses: dawidd6/action-send-mail@v18
43+
uses: hyperpolymath/smtp-notify-action@v0.2.0 # NOSONAR — pin authority is actions.lock (sha1-ede1191ef6ff3ac02c4f4d9efdf837ee517e11d7)
2144
with:
2245
server_address: ${{ secrets.SMTP_HOST }}
2346
server_port: ${{ secrets.SMTP_PORT }}

0 commit comments

Comments
 (0)