Skip to content

Commit 8918410

Browse files
committed
ci: add audit for direct pushes to main (private repo without protection)
1 parent 3c0504b commit 8918410

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/main-audit.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: audit-main-push
2+
on:
3+
push:
4+
branches: [main]
5+
jobs:
6+
audit:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Fail if direct push (non-PR merge)
10+
run: |
11+
echo "Actor: $GITHUB_ACTOR"
12+
if [ "$GITHUB_ACTOR" != "web-flow" ]; then
13+
echo "Direct push to main detected (no branch protection available on private Free)."
14+
exit 1
15+
fi

0 commit comments

Comments
 (0)