-
Notifications
You must be signed in to change notification settings - Fork 41
42 lines (36 loc) · 1.26 KB
/
socket-fix.yml
File metadata and controls
42 lines (36 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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@6f2ee2a68551ced5ffab8ae144bdd74067b62529
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/**'