TheAxZim / Whitesource-Scan-Action

A Github action which uses the Whitesource Unified Agent to scan a given repository. This Action will auto-resolve dependencies so no configuration file is required.
MIT License
8 stars 8 forks source link

Whitesource Scan Using Unified Agent

A Github action which uses the Whitesource Unified Agent to scan a given repository. This Action will auto-resolve dependencies, so no configuration file is required (unless specified).

For Details Unified Agent configuration, please see the page Unified Agent Configuration File and Parameters

Usage

Example Usage (Quick Setup without Config File)

Uses the Auto Resolve Dependencies flag. You must have the Whitesource API key set in your Github secrets.

name: Whitesource Security Scan Example

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2

    - name: Run Whitesource Action
      uses: TheAxZim/Whitesource-Scan-Action@v1.0.0
      with:
        wssURL: https://app-eu.whitesourcesoftware.com/agent
        apiKey: ${{ secrets.WSS_API_KEY }}
        productName: 'Microservices'
        projectName: 'My-Example-Microservice'

Example Usage (With Config File and optionally install file)

name: Whitesource Security Scan Example

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2

    - name: Run Whitesource Action
      uses: TheAxZim/Whitesource-Scan-Action@v1.0.0
      with:
        wssURL: https://app-eu.whitesourcesoftware.com/agent
        apiKey: ${{ secrets.WSS_API_KEY }}
        configFile: 'whitesource-fs-agent.config'

Additional parameter for extra commands

extraCommandsFile: 'install_commands.sh' # Optional Extra