Skip to content

SocketDev/action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Socket Security (GitHub Action)

A GitHub Action for running Socket.dev

Tip

A GitHub App is also available for a fully automated SCA workflow.

Usage

Socket Firewall: Free

Downloads and installs Socket Firewall: Free in your GitHub Action job, making it available to use in subsequent steps.

on: push

jobs:
  safe-install:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      - uses: SocketDev/action@v1
        with:
          mode: firewall

      # javascript / typescript
      - run: sfw npm install # or yarn, pnpm

      # rust
      - run: sfw cargo fetch

      # python
      - run: sfw pip install -r requirements.txt

Inputs

Input Description Required Default
mode Specify run mode (currently only supporting firewall mode) Yes -
firewall-version Specify the firewall version number No latest
job-summary Create a job summary No true
use-cache Cache the Socket binaries (force download if false) No true
github-token GitHub API Token used for downloading binaries No ${{ github.token}}

Outputs

Output Description
firewall-path-report Path to the generated firewall report JSON
firewall-path-binary Path to the installed binary

About

GitHub Action to run Socket in CLI or Firewall mode

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 2

  •  
  •