Skip to content

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.

License

Notifications You must be signed in to change notification settings

TheAxZim/Whitesource-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

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

  • This action offers a quick scan of a repository with minimal configuration.
    • For more advanced use, please include a config file. (See usage below)

    • If you need to perform some commands beforehand, please also include the path to the script file.

    • Please raise an issue for a specific request e.g. alternative configuration. I will update this over time.

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

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published