Skip to content

Commit 9188abe

Browse files
committed
feat: new workflows
1 parent e67c17a commit 9188abe

10 files changed

Lines changed: 57 additions & 149 deletions

File tree

packages/browseros-agent/.github/workflows/audit.yml renamed to .github/workflows/audit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
jobs:
1010
security-audit:
1111
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
working-directory: packages/browseros-agent
1215

1316
steps:
1417
- name: Checkout code

packages/browseros-agent/.github/workflows/branch-cleaner.yml renamed to .github/workflows/branch-cleaner.yml

File renamed without changes.

.github/workflows/cla.yml

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,58 @@
1-
name: 'CLA Assistant'
1+
name: CLA Assistant
2+
23
on:
34
issue_comment:
45
types: [created]
56
pull_request_target:
67
types: [opened, closed, synchronize]
78

8-
# Explicitly configure permissions
99
permissions:
1010
actions: write
1111
contents: write
1212
pull-requests: write
1313
statuses: write
1414

1515
jobs:
16-
CLAAssistant:
16+
cla:
1717
runs-on: ubuntu-latest
18+
if: |
19+
(github.event_name == 'pull_request_target') ||
20+
(github.event_name == 'issue_comment' && github.event.issue.pull_request &&
21+
(github.event.comment.body == 'recheck' ||
22+
github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA'))
1823
steps:
19-
- name: 'CLA Assistant'
20-
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
24+
- name: CLA Assistant
2125
uses: contributor-assistant/github-action@v2.6.1
2226
env:
2327
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_SIGNATURES_TOKEN }}
2429
with:
25-
# Path where signatures will be stored
26-
path-to-signatures: 'signatures/version1/cla.json'
27-
28-
# Path to your CLA document
29-
path-to-document: 'https://github.com/browseros-ai/BrowserOS/blob/main/CLA.md'
30-
31-
# Branch to store signatures (should not be protected)
30+
path-to-signatures: 'cla-signatures.json'
31+
path-to-document: 'https://github.com/${{ github.repository }}/blob/main/CLA.md'
3232
branch: 'main'
33-
34-
# Allowlist for users who don't need to sign (bots, core team members)
35-
allowlist: shadowfax92,felarof99,dependabot[bot],renovate[bot],github-actions[bot]
36-
37-
# Optional: Custom messages
33+
remote-organization-name: 'browseros-ai'
34+
remote-repository-name: 'cla-signatures'
35+
allowlist: 'shadowfax92,felarof99,bot*,*[bot],dependabot,renovate,github-actions,snyk-bot,imgbot,greenkeeper,semantic-release-bot,allcontributors'
36+
lock-pullrequest-aftermerge: false
3837
custom-notsigned-prcomment: |
39-
**CLA Assistant Lite bot** Thank you for your submission! We require contributors to sign our [Contributor License Agreement](https://github.com/browseros-ai/BrowserOS/blob/main/CLA.md) before we can accept your contribution.
38+
Thank you for your contribution! Before we can merge this PR, we need you to sign our [Contributor License Agreement](https://github.com/${{ github.repository }}/blob/main/CLA.md).
4039
41-
By signing the CLA, you confirm that:
42-
- You have read and agree to the AGPL-3.0 license terms
43-
- Your contribution is your original work
44-
- You grant us the rights to use your contribution under the AGPL-3.0 license
40+
**To sign the CLA**, please add a comment to this PR with the following text:
4541
46-
**To sign the CLA, please comment on this PR with:**
47-
`I have read the CLA Document and I hereby sign the CLA`
42+
```
43+
I have read the CLA Document and I hereby sign the CLA
44+
```
4845
49-
custom-pr-sign-comment: 'I have read the CLA Document and I hereby sign the CLA'
46+
You only need to sign once. After signing, this check will pass automatically.
5047
51-
custom-allsigned-prcomment: |
52-
**CLA Assistant Lite bot** ✅ All contributors have signed the CLA. Thank you for helping make BrowserOS better!
48+
---
49+
<details>
50+
<summary>Troubleshooting</summary>
5351
54-
# Lock PR after merge to prevent signature tampering
55-
lock-pullrequest-aftermerge: true
52+
- **Already signed but still failing?** Comment `recheck` to trigger a re-verification.
53+
- **Signed with a different email?** Make sure your commit email matches your GitHub account email, or add your commit email to your GitHub account.
5654
57-
# Custom commit messages
58-
create-file-commit-message: 'docs: Create CLA signatures file'
59-
signed-commit-message: 'docs: $contributorName signed the CLA in $owner/$repo#$pullRequestNo'
55+
</details>
56+
custom-pr-sign-comment: 'I have read the CLA Document and I hereby sign the CLA'
57+
custom-allsigned-prcomment: |
58+
All contributors have signed the CLA. Thank you!

packages/browseros-agent/.github/workflows/claude.yml renamed to .github/workflows/claude.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
2323
runs-on: ubuntu-latest
2424
permissions:
25-
contents: write # Can push branches and create commits
26-
pull-requests: write # Can create and update PRs
25+
contents: write
26+
pull-requests: write
2727
issues: read
2828
id-token: write
29-
actions: read # Required for Claude to read CI results on PRs
29+
actions: read
3030
steps:
3131
- name: Checkout repository
3232
uses: actions/checkout@v6
@@ -38,11 +38,5 @@ jobs:
3838
uses: anthropics/claude-code-action@v1
3939
with:
4040
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
41-
42-
# This is an optional setting that allows Claude to read CI results on PRs
4341
additional_permissions: |
4442
actions: read
45-
46-
# Allow all tools - branch protection rules at repo level prevent direct pushes to main/master
47-
# Omitting --allowedTools means all tools are available by default
48-

packages/browseros-agent/.github/workflows/code-quality.yml renamed to .github/workflows/code-quality.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@ on:
44
pull_request:
55
branches:
66
- main
7+
paths:
8+
- 'packages/browseros-agent/**'
79

810
jobs:
911
biome:
1012
name: runner / Biome
1113
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: packages/browseros-agent
1217
permissions:
1318
contents: read
1419
steps:
@@ -28,6 +33,9 @@ jobs:
2833
typecheck:
2934
name: runner / Typecheck
3035
runs-on: ubuntu-latest
36+
defaults:
37+
run:
38+
working-directory: packages/browseros-agent
3139
permissions:
3240
contents: read
3341
steps:

packages/browseros-agent/.github/workflows/pr-title.yml renamed to .github/workflows/pr-title.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ on:
55
types: [opened, synchronize, reopened, edited]
66

77
permissions:
8-
pull-requests: write # Read PR details and add labels
9-
issues: write # Labels are managed via issues API
10-
contents: read # Read repository content
8+
pull-requests: write
9+
issues: write
10+
contents: read
1111

1212
jobs:
1313
validate-pr-title:

packages/browseros-agent/.github/workflows/release-agent-sdk.yml renamed to .github/workflows/release-agent-sdk.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
defaults:
1111
run:
12-
working-directory: packages/agent-sdk
12+
working-directory: packages/browseros-agent/packages/agent-sdk
1313

1414
steps:
1515
- uses: actions/checkout@v6
@@ -23,7 +23,7 @@ jobs:
2323

2424
- name: Install dependencies
2525
run: bun ci
26-
working-directory: .
26+
working-directory: packages/browseros-agent
2727

2828
- name: Build
2929
run: bun run build

packages/browseros-agent/.github/workflows/test.yml renamed to .github/workflows/test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,21 @@ jobs:
77
name: Run Tests
88
runs-on: macos-latest
99
timeout-minutes: 10
10+
defaults:
11+
run:
12+
working-directory: packages/browseros-agent
1013

1114
steps:
12-
- name: 📥 Checkout code
15+
- name: Checkout code
1316
uses: actions/checkout@v6
1417

15-
- name: 🧰 Setup Bun
18+
- name: Setup Bun
1619
uses: oven-sh/setup-bun@v2
1720

18-
- name: 📦 Install dependencies
21+
- name: Install dependencies
1922
run: bun ci
2023

21-
- name: 🧪 Run all tests
24+
- name: Run all tests
2225
run: bun test:all
2326
env:
2427
PUPPETEER_EXECUTABLE_PATH: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

packages/browseros-agent/.github/dependabot.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

packages/browseros-agent/.github/workflows/cla.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)