diff --git a/.github/workflows/socket-tier1-analysis.yml b/.github/workflows/socket-tier1-analysis.yml new file mode 100644 index 0000000..b60357c --- /dev/null +++ b/.github/workflows/socket-tier1-analysis.yml @@ -0,0 +1,40 @@ +name: Socket Tier 1 Reachability Analysis + +on: + schedule: + # every day at 12 AM + - cron: '0 0 * * *' + workflow_dispatch: + inputs: + tags: + description: 'Manually run vulnerability analysis' + distinct_id: + description: 'Required by the return-dispatch action' + required: true + +concurrency: + group: ${{ github.workflow }}-${{ github.ref_name }} + cancel-in-progress: true + +jobs: + socket-vulnerability-analysis: + runs-on: ubuntu-latest + timeout-minutes: 60 + + steps: + - name: Check distinct_id + run: | + echo "distinct_id: ${{ github.event.inputs.distinct_id }}" + - name: Checkout code + uses: actions/checkout@v4 + - name: Install Socket CLI + run: npm install -g socket + - name: Run Tier 1 reachability scan + env: + SOCKET_SECURITY_API_TOKEN: ${{ secrets.SOCKET_API_KEY }} + run: | + # Full application reachability (Tier 1) + socket scan create . \ + --reach \ + --org "workos" \ + --no-interactive