Skip to content

Commit f87de0d

Browse files
ci: lock verification workflow to read-only
1 parent b021abb commit f87de0d

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

‎.github/workflows/sync-ci.yml‎

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
pull_request:
99

1010
permissions:
11-
contents: write
11+
contents: read
1212

1313
jobs:
1414
verify:
@@ -17,27 +17,12 @@ jobs:
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v4
20-
with:
21-
ref: ${{ github.ref_name }}
2220
- name: Setup Bun
2321
uses: oven-sh/setup-bun@v2
2422
with:
2523
bun-version: latest
2624
- name: Install dependencies
2725
run: bun install --frozen-lockfile
28-
- name: Format synchronized tests once
29-
if: github.ref_name == 'sync/lovable-2026-08-08'
30-
run: bunx prettier --write tests
31-
- name: Commit test formatting if needed
32-
if: github.ref_name == 'sync/lovable-2026-08-08'
33-
run: |
34-
if ! git diff --quiet -- tests; then
35-
git config user.name "github-actions[bot]"
36-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
37-
git add tests
38-
git commit -m "style: format synchronized tests"
39-
git push origin HEAD:sync/lovable-2026-08-08
40-
fi
4126
- name: Unit tests
4227
run: bun run test:unit
4328
- name: Typecheck

0 commit comments

Comments
 (0)