-
Notifications
You must be signed in to change notification settings - Fork 41
40 lines (34 loc) · 1.09 KB
/
socket-fix.yml
File metadata and controls
40 lines (34 loc) · 1.09 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
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@c9772a9b2ec3383fc1328d062da6fe29e33fe859
with:
node-version: '22'
- name: Run Socket Fix CLI
env:
DEBUG: ${{ inputs.debug == '1' && 'notice,error,inspect' || '' }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SOCKET_CLI_API_TOKEN: ${{ secrets.SOCKET_CLI_API_TOKEN }}
SOCKET_CLI_DEBUG: ${{ inputs.debug }}
run: pnpm dlx @socketsecurity/cli fix --autopilot