-
-
Save jdalton/885c2bba7bfaa003386a0ef19fcf927c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Socket Autofix PR | |
on: | |
workflow_dispatch: | |
inputs: | |
debug: | |
description: 'Enable debug output' | |
required: false | |
default: '0' | |
type: string | |
options: | |
- '0' | |
- '1' | |
permissions: | |
contents: write # Required to push branches | |
pull-requests: write # Required to open PRs | |
jobs: | |
fix-deps: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: latest | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Run Socket Fix CLI | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SOCKET_CLI_DEBUG: ${{ inputs.debug }} | |
run: npx socket fix --test --auto-merge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment