From a10c5f683d839174d428e950e51a2f6a7a140f4d Mon Sep 17 00:00:00 2001 From: Grant Cox Date: Thu, 3 Sep 2026 06:06:02 +1000 Subject: [PATCH] Add Socket Basics security scanning Adds the standard CI wrapper calling ynab-sast-scanner, matching the migrated setup already in place across other repos. Co-Authored-By: Marguerite Martinez Co-Authored-By: Claude Sonnet 5 --- .github/workflows/socket-basics.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/socket-basics.yml diff --git a/.github/workflows/socket-basics.yml b/.github/workflows/socket-basics.yml new file mode 100644 index 000000000..de52dcba7 --- /dev/null +++ b/.github/workflows/socket-basics.yml @@ -0,0 +1,17 @@ +name: Socket Basics Security Scan + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + socket-basics-security-scan: + # We intentionally run this shared action from @main, not from a pinned sha + # this is because we control the ynab-sast-scanner repo, so there is not a significant risk of malicious changes being pushed. + # Plus, the shared action does use pinned dependencies, and so will be updated fairly often. When we do that, we do not + # want to have to update the sha in every repo that uses this shared action, before such updates apply. + uses: ynab/ynab-sast-scanner/.github/workflows/socket-basics.yml@main + secrets: + SOCKET_SECURITY_API_KEY: ${{ secrets.SOCKET_SECURITY_API_KEY }} + SAST_SUPPRESSIONS_APP_PRIVATE_KEY: ${{ secrets.SAST_SUPPRESSIONS_APP_PRIVATE_KEY }} + \ No newline at end of file