Skip to content
This repository was archived by the owner on Jun 19, 2026. It is now read-only.

ci: bump notify-approval-needed reusable workflow SHA to fix Slack release notifications - #82

Merged
turnipdabeets merged 1 commit into
mainfrom
chore/bump-notify-approval-needed-sha
May 26, 2026
Merged

turnipdabeets merged 1 commit into
mainfrom
chore/bump-notify-approval-needed-sha

Conversation

@turnipdabeets

Copy link
Copy Markdown
Contributor

Problem

The Notify Slack - Approval Needed job in our Release workflow has been failing silently on every changeset-based release. Symptom: every release sits at the Bump version and commit to main environment-protection gate with no Slack notification ever fired, so the client-libraries team has no idea a release is pending approval.

First confirmed instance: yesterday's Release run 26473920035 for the 1.6.0 release of #81. We had to approve it manually because the auto-notification didn't go out.

Root cause

release.yml line 47 currently calls the org-level reusable workflow at a stale SHA:

uses: PostHog/.github/.github/workflows/notify-approval-needed.yml@d2e7c952fef6a22b2210bcffc70bec71abeeba03

At that SHA, the reusable workflow contains two unpinned action refs:

The org-level ensure-pinned-actions audit (introduced into our repo's main ruleset by #80) rejects these, the Slack-notify job fails its checkout step, and no message gets posted.

PostHog/.github has since fixed these — main today has both refs properly SHA-pinned. We just need to bump the pin.

Change

- uses: PostHog/.github/.github/workflows/notify-approval-needed.yml@d2e7c952fef6a22b2210bcffc70bec71abeeba03
+ uses: PostHog/.github/.github/workflows/notify-approval-needed.yml@5fc4680761e8ac29a61b212756230eba0e276d8c

The new SHA is current PostHog/.github@main. Diff between the two SHAs is just the SHA-pinning of those two action refs; no behavioral changes to the workflow.

Verification

Compare the same file at the two SHAs:

Will be verified end-to-end on the next changeset release after this PR merges — the Slack notification should fire.

Other PostHog repos affected by the same stale pin

A quick gh search code found four other repos pinning the same stale SHA:

  • PostHog/posthog-flutter — .github/workflows/publish.yml
  • PostHog/posthog-dotnet — .github/workflows/release.yml
  • PostHog/posthog-rs — .github/workflows/release.yml
  • PostHog/mcp-analytics — .github/workflows/release.yml

They almost certainly have the same broken Slack-notify behavior. Worth a follow-up sweep.

Checklist

  • Tests for new code (if applicable) — N/A (workflow YAML change)
  • Accounted for the impact of any changes across iOS and Android platforms — N/A (release workflow, not platform code)
  • Accounted for backwards compatibility of any changes (no breaking changes!) — yes, no behavioral change

If releasing new changes

  • Ran pnpm changeset to generate a changeset file — N/A, no library changes

…d actions

The previously pinned SHA (d2e7c95) of PostHog/.github's notify-approval-needed.yml
contained two unpinned action refs (actions/checkout@v6 and PostHog/posthog-github-action@v1.1.1).
The ensure-pinned-actions org-level audit check rejects those, so the Slack
approval notification never fires on releases — every changeset release
sits at the approval gate with maintainers unaware.

Bump to current PostHog/.github main (5fc4680), which has those refs
SHA-pinned (actions/checkout@de0fac2... # v6.0.2 and posthog-github-action@eea1405... # v1.1.1).

Verified at:
  https://github.com/PostHog/.github/blob/5fc4680761e8ac29a61b212756230eba0e276d8c/.github/workflows/notify-approval-needed.yml
@turnipdabeets
turnipdabeets requested a review from a team as a code owner May 26, 2026 21:11

@ioannisj ioannisj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to update all slack actions though

@turnipdabeets
turnipdabeets merged commit 5e8feae into main May 26, 2026
16 checks passed
@turnipdabeets
turnipdabeets deleted the chore/bump-notify-approval-needed-sha branch May 26, 2026 21:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants