Skip to content

ci: run Check on pushes to main - #3

Merged
ralyodio merged 1 commit into
mainfrom
ci/check-on-main
Aug 3, 2026
Merged

ci: run Check on pushes to main#3
ralyodio merged 1 commit into
mainfrom
ci/check-on-main

Conversation

@ralyodio

@ralyodio ralyodio commented Aug 3, 2026

Copy link
Copy Markdown

Problem

Check only triggers on pull_request, so main itself is never verified.
A PR's run reflects its merge commit at the time it ran — if that run is
stale, or if two PRs are each green in isolation but interact badly once both
land, a broken main goes unnoticed until the next PR happens to catch it.

The two commits currently at the tip of main (#1 and #2) were green as PRs
but have never been built on the trunk.

Change

   pull_request:
     branches:
       - main
+  push:
+    branches:
+      - main

push is scoped to main only, so PR branches are unaffected — pushing to a
feature branch still produces exactly one run, from pull_request. No
duplicate runs.

Verification

The PR's own pull_request run exercises the file. The push half can only be
observed after merge — expect a Check run against main immediately on
landing, which will also give the trunk its first real build.

Not included: a concurrency group to cancel superseded main runs on rapid
successive merges. Reasonable follow-up, but out of scope here.

🤖 Generated with Claude Code

The workflow only triggered on pull_request, so nothing verified main
itself. A merge could land untested if its PR run was stale, or if two
PRs were each green alone but conflicted semantically once combined.

Add a push trigger scoped to main. PR branches are unaffected, since
push is limited to main and their runs still come from pull_request.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@ralyodio
ralyodio marked this pull request as ready for review August 3, 2026 23:16
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

ThreatCrush Security Scan

11 finding(s)

HIGH/CRITICAL: 11

Severity Rule Location
HIGH secret-generic-credential bitchatTests/PasswordProtectedChannelTests.swift:57
HIGH secret-generic-credential bitchatTests/PasswordProtectedChannelTests.swift:79
HIGH secret-generic-credential bitchatTests/PasswordProtectedChannelTests.swift:104
HIGH secret-generic-credential bitchatTests/PasswordProtectedChannelTests.swift:140
HIGH secret-generic-credential bitchatTests/PasswordProtectedChannelTests.swift:141
HIGH secret-generic-credential bitchatTests/PasswordProtectedChannelTests.swift:199
HIGH secret-generic-credential bitchatTests/PasswordProtectedChannelTests.swift:257
HIGH secret-generic-credential bitchatTests/PasswordProtectedChannelTests.swift:276
HIGH secret-generic-credential bitchatTests/PasswordProtectedChannelTests.swift:360
HIGH secret-generic-credential bitchatTests/PasswordProtectedChannelTests.swift:378
HIGH secret-generic-credential bitchatTests/PasswordProtectedChannelTests.swift:388

Snippets are redacted; ThreatCrush never prints matched credential material.

@ralyodio
ralyodio merged commit 6868009 into main Aug 3, 2026
6 checks passed
@ralyodio
ralyodio deleted the ci/check-on-main branch August 3, 2026 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant