Skip to content

Instantly share code, notes, and snippets.

@jdalton
Last active May 15, 2025 17:10
Show Gist options
  • Save jdalton/885c2bba7bfaa003386a0ef19fcf927c to your computer and use it in GitHub Desktop.
Save jdalton/885c2bba7bfaa003386a0ef19fcf927c to your computer and use it in GitHub Desktop.
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