name: Socket Basics security scan
on:
workflow_dispatch:
schedule:
- cron: "5 14 * * 6"
permissions:
contents: read
jobs:
socket-basics:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 with:
persist-credentials: false
- name: Run Socket Basics
env:
SOCKET_SECURITY_API_TOKEN: ${{ secrets.SOCKET_SECURITY_API_TOKEN }}
SOCKET_ORG: stellar
run: |
# Socket Basics is pinned by digest since rule tuning is calibrated
# to the exact ruleset contained in this image. Automatic updates
# could introduce new rules and a sudden increase in false
# positives, as these tools are generally noisy without tuning.
docker run --rm \
-v "$PWD:/github/workspace" \
-w /github/workspace \
-e SOCKET_SECURITY_API_TOKEN \
-e SOCKET_ORG \
-e GITHUB_REPOSITORY \
-e GITHUB_REF_NAME \
-e GITHUB_SHA \
ghcr.io/socketdev/socket-basics@sha256:d463bae84f21d0240d5e197acb81e95144a966a20ab7cd05cca3a70e1796a4bb \
--config .socket-basics.json