forked from DmitIv/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 1.11 KB
/
socket.yaml
File metadata and controls
45 lines (35 loc) · 1.11 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
43
44
45
# Socket Security GitHub Actions Workflow
# This workflow runs Socket Security scans on every commit to any branch
# It automatically detects git repository information and handles different event types
name: socket-security-workflow
run-name: Reachability check
on:
workflow_dispatch
# Prevent concurrent runs for the same commit
concurrency:
group: socket-scan-${{ github.ref }}-${{ github.sha }}
cancel-in-progress: true
jobs:
socket-security:
permissions:
issues: write
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Socket CLI
run: npm install -g socket
- name: Install UV
run: pip install uv
- name: Install pyenv
run: |
python -m venv .venv
source .venv/bin/activate
- name: Run Socket Security Scan
env:
SOCKET_CLI_API_TOKEN: ${{ secrets.SOCKET_SECURITY_API_KEY }}
run: socket scan create --reach --org "lido-labs" .