Skip to content

Commit c571468

Browse files
committed
Update actions
1 parent 9a7adca commit c571468

File tree

7 files changed

+95
-61
lines changed

7 files changed

+95
-61
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Claude Auto Review
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
id-token: write
11+
pull-requests: read
12+
13+
jobs:
14+
auto-review:
15+
uses: SocketDev/socket-registry/.github/workflows/claude-auto-review.yml@main
16+
secrets:
17+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}

.github/workflows/claude.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Claude Code
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_review_comment:
7+
types: [created]
8+
issues:
9+
types: [opened, assigned]
10+
pull_request_review:
11+
types: [submitted]
12+
workflow_dispatch:
13+
14+
permissions:
15+
contents: read
16+
id-token: write
17+
issues: write
18+
pull-requests: write
19+
20+
jobs:
21+
claude:
22+
uses: SocketDev/socket-registry/.github/workflows/claude.yml@main
23+
secrets:
24+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}

.github/workflows/lint.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
1-
name: ⚙️ Linting
1+
name: Linting
22

33
on:
44
push:
5-
branches:
6-
- main
7-
tags:
8-
- '*'
5+
branches: [main]
6+
tags: ['*']
97
pull_request:
10-
branches:
11-
- main
8+
branches: [main]
129
workflow_dispatch:
1310

1411
permissions:
1512
contents: read
1613

17-
concurrency:
18-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
19-
cancel-in-progress: true
20-
2114
jobs:
22-
linting:
15+
lint:
2316
uses: SocketDev/socket-registry/.github/workflows/lint.yml@main
24-
with:
25-
node-version: '22'

.github/workflows/provenance.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
name: ⚙️ Provenance
1+
name: Publish to registry
22

33
on:
4-
release:
5-
types: [created]
6-
7-
permissions:
8-
contents: read
9-
id-token: write
4+
workflow_dispatch:
5+
inputs:
6+
debug:
7+
description: 'Enable debug output'
8+
required: false
9+
default: '0'
10+
type: string
11+
options:
12+
- '0'
13+
- '1'
1014

1115
jobs:
12-
provenance:
16+
publish:
1317
uses: SocketDev/socket-registry/.github/workflows/provenance.yml@main
1418
with:
15-
node-version: '22'
19+
debug: ${{ inputs.debug }}
1620
package-name: '@socketregistry/packageurl-js'
1721
secrets:
1822
npm_token: ${{ secrets.NPM_TOKEN }}
19-
permissions:
20-
contents: read
21-
id-token: write
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Socket Fix
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # Run daily at midnight UTC
6+
- cron: '0 12 * * *' # Run daily at noon UTC
7+
workflow_dispatch:
8+
inputs:
9+
debug:
10+
description: 'Enable debug output'
11+
required: false
12+
default: '0'
13+
type: string
14+
options:
15+
- '0'
16+
- '1'
17+
18+
jobs:
19+
fix:
20+
uses: SocketDev/socket-registry/.github/workflows/socket-auto-pr.yml@main
21+
with:
22+
debug: ${{ inputs.debug }}
23+
autopilot: true
24+
secrets:
25+
socket_cli_api_token: ${{ secrets.SOCKET_CLI_API_TOKEN }}
26+
gh_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,16 @@
1-
name: ⚙️ Tests
1+
name: Tests
22

33
on:
44
push:
5-
branches:
6-
- main
7-
tags:
8-
- '*'
5+
branches: [main]
6+
tags: ['*']
97
pull_request:
10-
branches:
11-
- main
8+
branches: [main]
129
workflow_dispatch:
1310

1411
permissions:
1512
contents: read
1613

17-
concurrency:
18-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
19-
cancel-in-progress: true
20-
2114
jobs:
22-
test-matrix:
23-
strategy:
24-
matrix:
25-
node-version: [20, 22, 24]
26-
os: [ubuntu-latest, windows-latest]
27-
name: Test Node ${{ matrix.node-version }} on ${{ matrix.os }}
15+
test:
2816
uses: SocketDev/socket-registry/.github/workflows/test.yml@main
29-
with:
30-
node-version: '${{ matrix.node-version }}'
31-
os: ${{ matrix.os }}
32-
timeout-minutes: 10

.github/workflows/types.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
1-
name: ⚙️ Types
1+
name: Type Checks
22

33
on:
44
push:
5-
branches:
6-
- main
7-
tags:
8-
- '*'
5+
branches: [main]
6+
tags: ['*']
97
pull_request:
10-
branches:
11-
- main
8+
branches: [main]
129
workflow_dispatch:
1310

1411
permissions:
1512
contents: read
1613

17-
concurrency:
18-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
19-
cancel-in-progress: true
20-
2114
jobs:
22-
types:
15+
type-check:
2316
uses: SocketDev/socket-registry/.github/workflows/types.yml@main
24-
with:
25-
node-version: '22'

0 commit comments

Comments
 (0)