Skip to content

Socket Fix

Socket Fix #28

Workflow file for this run

name: Socket Fix
on:
schedule:
- cron: '0 0 * * *' # Run daily at midnight UTC
- cron: '0 12 * * *' # Run daily at noon UTC
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:
socket-fix:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: SocketDev/socket-cli/.github/actions/setup@92abef4a206889e8b71520fd494f7727d20186cb
with:
node-version: '22'
- name: Run Socket Fix CLI
env:
DEBUG: ${{ inputs.debug == '1' && 'notice,error,inspect' || '' }}
SOCKET_CLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SOCKET_CLI_GIT_USER_EMAIL: socket-fix[bot]@users.noreply.github.com
SOCKET_CLI_GIT_USER_NAME: socket-fix[bot]
SOCKET_CLI_API_TOKEN: ${{ secrets.SOCKET_CLI_API_TOKEN }}
SOCKET_CLI_DEBUG: ${{ inputs.debug }}
run: pnpm dlx @socketsecurity/cli fix --autopilot --glob '!test/fixtures/**'