Skip to content

Commit e1fd57a

Browse files
chore(ci): repoint push-email-notify to smtp-notify-action (#68)
1 parent c13f93e commit e1fd57a

2 files changed

Lines changed: 39 additions & 15 deletions

File tree

‎.github/workflows/actions.lock‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@
33
# Docs: https://gh.io/actions-lockfile
44
version: 'v0.0.2'
55
workflows:
6-
'.github/workflows/governance.yml': []
7-
'.github/workflows/hypatia-scan.yml': []
8-
'.github/workflows/label-triage.yml': []
9-
'.github/workflows/labels.yml': []
10-
'.github/workflows/mirror.yml': []
11-
'.github/workflows/scorecard.yml': []
12-
'.github/workflows/secret-scanner.yml': []
136
'.github/workflows/boj-build.yml':
147
- 'actions/checkout@v4.1.7'
158
'.github/workflows/casket-pages.yml':
@@ -19,14 +12,21 @@ workflows:
1912
- 'actions/deploy-pages@v4.0.5'
2013
- 'actions/upload-pages-artifact@v3.0.1'
2114
- 'haskell-actions/setup@v2.7.5'
15+
'.github/workflows/governance.yml': []
16+
'.github/workflows/hypatia-scan.yml': []
2217
'.github/workflows/instant-sync.yml':
2318
- 'peter-evans/repository-dispatch@v4.0.1'
19+
'.github/workflows/label-triage.yml': []
20+
'.github/workflows/labels.yml': []
21+
'.github/workflows/mirror.yml': []
2422
'.github/workflows/pages.yml':
2523
- 'actions/checkout@v4.4.0'
2624
- 'actions/deploy-pages@v4.0.5'
2725
- 'actions/upload-pages-artifact@v3.0.1'
2826
'.github/workflows/push-email-notify.yml':
29-
- 'dawidd6/action-send-mail@v3.12.0'
27+
- 'hyperpolymath/smtp-notify-action@v0.2.0'
28+
'.github/workflows/scorecard.yml': []
29+
'.github/workflows/secret-scanner.yml': []
3030
dependencies:
3131
'actions/cache@v4.3.0':
3232
ref: 'v4.3.0'
@@ -70,16 +70,16 @@ dependencies:
7070
repo_id: 496012378
7171
uses:
7272
- 'actions/upload-artifact@v4'
73-
'dawidd6/action-send-mail@v3.12.0':
74-
ref: 'v3.12.0'
75-
commit: 'sha1-6e502825a508b867ab2954ad6343b68787624c01'
76-
owner_id: 9713907
77-
repo_id: 222439721
7873
'haskell-actions/setup@v2.7.5':
7974
ref: 'v2.7.5'
8075
commit: 'sha1-ec49483bfc012387b227434aba94f59a6ecd0900'
8176
owner_id: 75048950
8277
repo_id: 623796603
78+
'hyperpolymath/smtp-notify-action@v0.2.0':
79+
ref: 'v0.2.0'
80+
commit: 'sha1-ede1191ef6ff3ac02c4f4d9efdf837ee517e11d7'
81+
owner_id: 6759885
82+
repo_id: 1352485172
8383
'peter-evans/repository-dispatch@v4.0.1':
8484
ref: 'v4.0.1'
8585
commit: 'sha1-28959ce8df70de7be546dd1250a005dd32156697'

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

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +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:
1134
contents: read
1235
jobs:
1336
notify:
1437
name: Email on push
1538
if: ${{ vars.PUSH_EMAIL_ENABLED == 'true' }}
1639
runs-on: ubuntu-latest
40+
timeout-minutes: 5
1741
steps:
1842
- name: Send push notification email
19-
uses: dawidd6/action-send-mail@v3.12.0
43+
uses: hyperpolymath/smtp-notify-action@v0.2.0 # NOSONAR — pin authority is actions.lock (sha1-ede1191ef6ff3ac02c4f4d9efdf837ee517e11d7)
2044
with:
2145
server_address: ${{ secrets.SMTP_HOST }}
2246
server_port: ${{ secrets.SMTP_PORT }}

0 commit comments

Comments
 (0)