Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ permissions:
jobs:
validate-commits:
runs-on: ubuntu-latest
if: github.event.pull_request.user.type != 'Bot'
steps:
- name: Checkout Repository
uses: actions/checkout@v4
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/socket-fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Socket Fix

on:
schedule:
- cron: "17 6 * * 1,4" # Mon + Thu 6:17am UTC
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
fix:
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App token
id: generate-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.GH_REPO_ACCESS_APP_ID }}
private-key: ${{ secrets.GH_REPO_ACCESS_PRIVATE_KEY }}

- uses: actions/checkout@v4
with:
token: ${{ steps.generate-token.outputs.token }}

- uses: actions/setup-python@v5
with:
python-version: "3.12"

- uses: astral-sh/setup-uv@v4

- name: Install dependencies
run: uv sync --all-extras --all-packages

- uses: actions/setup-node@v4
with:
node-version: "22"

- name: Run Socket Fix
env:
SOCKET_CLI_GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
SOCKET_CLI_API_TOKEN: ${{ secrets.SOCKET_API_TOKEN }}
SOCKET_CLI_GIT_USER_NAME: github-actions[bot]
SOCKET_CLI_GIT_USER_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
run: npx @socketsecurity/cli fix --autopilot
Loading