Skip to content

A github aciton for scanning your project with backslash

Notifications You must be signed in to change notification settings

backslash-security/scan-action

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scan-action

A github action for scanning your project using Backslash

Inputs

Input Type Description
Required:
authToken string Your backslash api token
ignoreBlock boolean Ignore pipeline blocking if scan fails
Optional:
isOnPremise boolean Wether or not the action is being run on a github-on-premise instance
prScan boolean If set to true, the scan will return only findings new to the pr otherwise the scan will return all findings
localExport boolean If set to true, the scan result will be stored into json file locally and could be uploaded to the GHA artifacts
disablePrComments boolean Default true, If set to false, the scan will comment the result on the pull request
githubToken string Required if disablePrComments=false. You can use ${{ secrets.GITHUB_TOKEN}} or create a dedicated one.

Example usage

Simple usage

on:
  pull_request:
    branches: [master]

jobs:
  backslash_scan_job:
    runs-on: self-hosted
    name: Backslash scan
    steps:
      - name: Backslash scan step
        id: bscan
        uses: backslash-security/scan-action@main
        with:
          authToken: ${{ secrets.BACKSLASH_AUTH_TOKEN }}
          ignoreBlock: false
          scanPr: true

Scan and comment summary on the pull request

on:
  pull_request:
    branches: [master]

jobs:
  backslash_scan_job:
    runs-on: self-hosted
    name: Backslash scan
    steps:
      - name: Backslash scan step
        id: bscan
        uses: backslash-security/scan-action@main
        with:
          authToken: ${{ secrets.BACKSLASH_AUTH_TOKEN }}
          ignoreBlock: false
          scanPr: true
          disablePrComments: false
          githubToken: ${{ secrets.GITHUB_TOKEN }}

Scan and upload artifact

on:
  pull_request:
    branches: [master]

jobs:
  backslash_scan_job:
    runs-on: self-hosted
    name: Backslash scan
    steps:
      - name: Backslash scan step
        id: bscan
        uses: backslash-security/scan-action@main
        with:
          authToken: ${{ secrets.BACKSLASH_AUTH_TOKEN }}
          ignoreBlock: false
          scanPr: true
          localExport: true
      - uses: actions/upload-artifact@v4
        if: ${{ !cancelled() }}
        with:
          name: Backslash-report
          path: Backslash-scan-results/
          retention-days: 10

Deployment & Contribute

installation:

npm i
brew install ncc

Build:

npm run build

New tag:

./new-version.sh tag-name

About

A github aciton for scanning your project with backslash

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •