Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 6 additions & 15 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ jobs:
echo "Sleeping for $delay seconds..."
sleep $delay

- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
token: ${{ secrets.GITHUB_TOKEN }}

- uses: SocketDev/socket-registry/.github/actions/setup-and-install@da519693b701861bc0f9690a30f50af1a1dcd49c # main

- name: Generate SDK
Expand All @@ -74,12 +69,11 @@ jobs:
if: steps.check.outputs.has_changes == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
run: |
git checkout -b automated/open-api
git add .
git commit -m "fix(openapi): sync with openapi definition"
git push "https://x-access-token:${GH_TOKEN}@github.com/${REPO}.git" automated/open-api -fu
git push origin automated/open-api -fu

- name: Create Pull Request
if: steps.check.outputs.has_changes == 'true'
Expand All @@ -94,7 +88,7 @@ jobs:
--head automated/open-api \
--base main \
--title "Sync with OpenAPI definition" \
--body "## 🔄 OpenAPI Sync
--body "## OpenAPI Sync

The OpenAPI definition in the API has been updated. This PR automatically:
- Downloads the latest OpenAPI specification
Expand All @@ -105,15 +99,15 @@ jobs:
### What's Changed
See the file changes below for specific updates to the API types, strict types, and methods.

⚠️ **Please review carefully for any breaking changes in the API.**" \
**Please review carefully for any breaking changes in the API.**" \
--label "dependencies" \
--label "automated"
else
echo "PR #$existing_pr already exists, skipping creation"
fi

- uses: SocketDev/socket-registry/.github/actions/cleanup-git-signing@da519693b701861bc0f9690a30f50af1a1dcd49c # main
if: always()
if: steps.check.outputs.has_changes == 'true' && always()

validate:
name: Validate generated SDK
Expand All @@ -125,12 +119,9 @@ jobs:
outputs:
has_changes: ${{ steps.check.outputs.has_changes }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
ref: automated/open-api

- uses: SocketDev/socket-registry/.github/actions/setup-and-install@da519693b701861bc0f9690a30f50af1a1dcd49c # main
with:
checkout-ref: automated/open-api

- name: Build SDK
run: pnpm run build
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## [3.5.1](https://github.com/SocketDev/socket-sdk-js/releases/tag/v3.5.1) - 2026-04-04

### Changed

- Updated `@socketsecurity/lib` to v5.12.0
- Added `minimumReleaseAgeExclude` for Socket-owned packages in pnpm-workspace.yaml

### Fixed

- Fixed generate SDK workflow GPG commit signing and push authentication

## [3.5.0](https://github.com/SocketDev/socket-sdk-js/releases/tag/v3.5.0) - 2026-04-03

### Added
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@socketsecurity/sdk",
"version": "3.5.0",
"version": "3.5.1",
"description": "SDK for the Socket API client",
"homepage": "https://github.com/SocketDev/socket-sdk-js",
"license": "MIT",
Expand Down Expand Up @@ -65,7 +65,7 @@
},
"dependencies": {
"@socketregistry/packageurl-js": "1.4.1",
"@socketsecurity/lib": "5.11.4",
"@socketsecurity/lib": "5.12.0",
"form-data": "4.0.5"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# Wait 7 days (10080 minutes) before installing newly published packages.
minimumReleaseAge: 10080
minimumReleaseAgeExclude:
- '@socketaddon/*'
- '@socketbin/*'
- '@socketregistry/*'
- '@socketsecurity/*'