Skip to content

Commit 74d75dd

Browse files
committed
chore(workflows): update socket-registry SHA references
Update socket-registry workflow/action references from 1a96ced to e145a6b. This includes the latest fixes for: - pnpm version conflict resolution - Security hardening (zizmor findings) - Template injection vulnerabilities - Credential persistence settings
1 parent 34aa552 commit 74d75dd

File tree

6 files changed

+22
-11
lines changed

6 files changed

+22
-11
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717
jobs:
1818
ci:
1919
name: Run CI Pipeline
20-
uses: SocketDev/socket-registry/.github/workflows/ci.yml@1a96ced97aaa85d61543351b90d6f463b983c46c # main
20+
uses: SocketDev/socket-registry/.github/workflows/ci.yml@e145a6b355d614054e4df3d49ba5218812f42b3e # main
2121
with:
2222
fail-fast: false
2323
lint-script: 'pnpm run lint --all'

.github/workflows/claude-auto-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ permissions:
1212

1313
jobs:
1414
auto-review:
15-
uses: SocketDev/socket-registry/.github/workflows/claude-auto-review.yml@1a96ced97aaa85d61543351b90d6f463b983c46c # main
15+
uses: SocketDev/socket-registry/.github/workflows/claude-auto-review.yml@e145a6b355d614054e4df3d49ba5218812f42b3e # main
1616
secrets:
1717
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}

.github/workflows/claude.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ permissions:
1919

2020
jobs:
2121
claude:
22-
uses: SocketDev/socket-registry/.github/workflows/claude.yml@1a96ced97aaa85d61543351b90d6f463b983c46c # main
22+
uses: SocketDev/socket-registry/.github/workflows/claude.yml@e145a6b355d614054e4df3d49ba5218812f42b3e # main
2323
secrets:
2424
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}

.github/workflows/generate.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ on:
2121
type: boolean
2222

2323
permissions:
24-
contents: write
25-
pull-requests: write
24+
contents: read
2625

2726
jobs:
2827
fetch_and_update:
2928
name: Sync OpenAPI definition
3029
runs-on: ubuntu-latest
30+
permissions:
31+
contents: write
32+
pull-requests: write
3133
outputs:
3234
has_changes: ${{ steps.check.outputs.has_changes }}
3335
steps:
@@ -42,9 +44,9 @@ jobs:
4244
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4345
with:
4446
autocrlf: false
45-
token: ${{ secrets.GITHUB_TOKEN }}
47+
persist-credentials: false
4648

47-
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@1a96ced97aaa85d61543351b90d6f463b983c46c # main
49+
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@e145a6b355d614054e4df3d49ba5218812f42b3e # main
4850

4951
- name: Fetch latest OpenAPI definition
5052
id: fetch
@@ -90,11 +92,16 @@ jobs:
9092
9193
- name: Commit and push changes
9294
if: steps.check.outputs.has_changes == 'true'
95+
env:
96+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9397
run: |
9498
git checkout -b automated/open-api
9599
git add .
96-
git commit -m "fix(openapi): sync with openapi definition"
97-
git push origin automated/open-api -fu --no-verify
100+
git commit -m "fix(openapi): sync with openapi definition" --no-verify
101+
102+
# Use gh to push (works with GITHUB_TOKEN in env)
103+
gh repo set-default ${{ github.repository }}
104+
git push https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git automated/open-api -f
98105
99106
- name: Create Pull Request
100107
if: steps.check.outputs.has_changes == 'true'
@@ -131,15 +138,18 @@ jobs:
131138
needs: fetch_and_update
132139
if: needs.fetch_and_update.outputs.has_changes == 'true'
133140
runs-on: ubuntu-latest
141+
permissions:
142+
contents: read
134143
outputs:
135144
has_changes: ${{ steps.check.outputs.has_changes }}
136145
steps:
137146
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
138147
with:
139148
autocrlf: false
149+
persist-credentials: false
140150
ref: automated/open-api
141151

142-
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@1a96ced97aaa85d61543351b90d6f463b983c46c # main
152+
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@e145a6b355d614054e4df3d49ba5218812f42b3e # main
143153

144154
- name: Build SDK
145155
run: pnpm run build

.github/workflows/socket-auto-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ permissions:
2121

2222
jobs:
2323
socket-auto-pr:
24-
uses: SocketDev/socket-registry/.github/workflows/socket-auto-pr.yml@1a96ced97aaa85d61543351b90d6f463b983c46c # main
24+
uses: SocketDev/socket-registry/.github/workflows/socket-auto-pr.yml@e145a6b355d614054e4df3d49ba5218812f42b3e # main
2525
with:
2626
debug: ${{ inputs.debug }}
2727
autopilot: true

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@socketsecurity/sdk",
33
"version": "3.1.3",
4+
"packageManager": "pnpm@>=10.21.0",
45
"license": "MIT",
56
"description": "SDK for the Socket API client",
67
"author": {

0 commit comments

Comments
 (0)