Skip to content

Commit ad2d0b4

Browse files
committed
Update actions
1 parent 7f96063 commit ad2d0b4

File tree

8 files changed

+32
-160
lines changed

8 files changed

+32
-160
lines changed

.github/actions/setup/action.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,14 @@
1-
name: Claude Auto Review
1+
name: ⚙️ Claude Auto Review
22

33
on:
44
pull_request:
55
types: [opened]
6+
workflow_dispatch:
67

78
jobs:
89
auto-review:
9-
runs-on: ubuntu-latest
10-
permissions:
11-
contents: read
12-
pull-requests: read
13-
id-token: write
14-
steps:
15-
- name: Checkout repository
16-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
17-
with:
18-
fetch-depth: 1
19-
20-
- name: Automatic PR Review
21-
uses: anthropics/claude-code-action@28f83620103c48a57093dcc2837eec89e036bb9f # beta
22-
with:
23-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
24-
timeout_minutes: "60"
25-
direct_prompt: |
26-
Please review this pull request and provide actionable feedback.
27-
28-
Focus on:
29-
- Code quality and best practices
30-
- Potential bugs or issues
31-
- Performance considerations
32-
- Security implications
33-
- Overall architecture and design decisions
34-
35-
Provide constructive feedback with specific suggestions for improvement.
36-
Use inline comments to highlight specific areas of concern. Be concise and clear in your feedback.
37-
allowed_tools: "mcp__github__create_pending_pull_request_review,mcp__github__add_pull_request_review_comment_to_pending_review,mcp__github__submit_pending_pull_request_review,mcp__github__get_pull_request_diff"
10+
uses: SocketDev/socket-registry/.github/workflows/claude-auto-review.yml@main
11+
secrets:
12+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
13+
with:
14+
timeout_minutes: '60'

.github/workflows/claude.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Claude Code
1+
name: ⚙️ Claude Code
22

33
on:
44
issue_comment:
@@ -9,6 +9,7 @@ on:
99
types: [opened, assigned]
1010
pull_request_review:
1111
types: [submitted]
12+
workflow_dispatch:
1213

1314
jobs:
1415
claude:
@@ -17,21 +18,6 @@ jobs:
1718
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
1819
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
1920
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
20-
runs-on: ubuntu-latest
21-
permissions:
22-
contents: read
23-
pull-requests: write
24-
issues: write
25-
id-token: write
26-
steps:
27-
- name: Checkout repository
28-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
29-
with:
30-
fetch-depth: 1
31-
32-
- name: Run Claude Code
33-
id: claude
34-
uses: anthropics/claude-code-action@28f83620103c48a57093dcc2837eec89e036bb9f # beta
35-
with:
36-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
37-
21+
uses: SocketDev/socket-registry/.github/workflows/claude.yml@main
22+
secrets:
23+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}

.github/workflows/lint.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Linting
1+
name: ⚙️ Linting
22

33
on:
44
push:
@@ -9,6 +9,7 @@ on:
99
pull_request:
1010
branches:
1111
- main
12+
workflow_dispatch:
1213

1314
permissions:
1415
contents: read
@@ -19,13 +20,4 @@ concurrency:
1920

2021
jobs:
2122
linting:
22-
name: 'Linting'
23-
runs-on: ubuntu-latest
24-
steps:
25-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26-
- uses: SocketDev/socket-cli/.github/actions/setup@6f2ee2a68551ced5ffab8ae144bdd74067b62529
27-
with:
28-
node-version: '22'
29-
30-
- name: Run linting
31-
run: pnpm run check-ci
23+
uses: SocketDev/socket-registry/.github/workflows/lint.yml@main

.github/workflows/provenance.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish Package to npm
1+
name: ⚙️ Provenance
22

33
on:
44
workflow_dispatch:
@@ -21,15 +21,10 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
24-
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
25-
with:
26-
version: 10
27-
run_install: false
28-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
24+
- uses: SocketDev/socket-registry/.github/actions/setup@main
2925
with:
3026
node-version: '22'
3127
registry-url: 'https://registry.npmjs.org'
32-
cache: pnpm
3328
scope: '@socketsecurity'
3429
- run: pnpm install
3530
- run: INLINED_SOCKET_CLI_PUBLISHED_BUILD=1 pnpm run build:dist

.github/workflows/socket-fix.yml

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

.github/workflows/test.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: ⚙️ Tests
22

33
on:
44
push:
@@ -19,18 +19,13 @@ concurrency:
1919
cancel-in-progress: true
2020

2121
jobs:
22-
test:
23-
runs-on: ${{ matrix.os }}
24-
timeout-minutes: 10
22+
test-matrix:
2523
strategy:
2624
matrix:
2725
node-version: [20, 22, 24]
2826
os: [ubuntu-latest, windows-latest]
29-
steps:
30-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
31-
- uses: SocketDev/socket-cli/.github/actions/setup@6f2ee2a68551ced5ffab8ae144bdd74067b62529
32-
with:
33-
node-version: ${{ matrix.node-version }}
34-
35-
- name: Run tests
36-
run: pnpm run test-ci
27+
name: Test Node ${{ matrix.node-version }} on ${{ matrix.os }}
28+
uses: SocketDev/socket-registry/.github/workflows/test.yml@main
29+
with:
30+
node-version: '${{ matrix.node-version }}'
31+
os: ${{ matrix.os }}

.github/workflows/types.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Type Checks
1+
name: ⚙️ Types
22

33
on:
44
push:
@@ -9,18 +9,15 @@ on:
99
pull_request:
1010
branches:
1111
- main
12+
workflow_dispatch:
1213

1314
permissions:
1415
contents: read
1516

16-
jobs:
17-
type-check:
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
21-
- uses: SocketDev/socket-cli/.github/actions/setup@6f2ee2a68551ced5ffab8ae144bdd74067b62529
22-
with:
23-
node-version: '22'
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
19+
cancel-in-progress: true
2420

25-
- name: Run type check
26-
run: pnpm run check:tsc
21+
jobs:
22+
types:
23+
uses: SocketDev/socket-registry/.github/workflows/types.yml@main

0 commit comments

Comments
 (0)