Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

WhiteSource Unified Agent wrapper for scanning multiple remote repositories

License

Notifications You must be signed in to change notification settings

whitesource-ft/ws-multi-repo-scanner

Repository files navigation

⛔ [DEPRECATED] This repository will be inaccessible starting January 9th, 2023.

Logo

License

GitLab Multi-Repo Scanner

The GitLab Multi-Repo Scanner (gitlab-scanner) is a bash utlity for scanning multiple code repositories from GitLab using the dockerized unified agent

Supported Environments

  • GitLab

Supported Operating Systems

  • Linux (Bash): CentOS, Debian, Ubuntu, RedHat

Prerequisites

  • Docker

Setup

Clone & Provide Script Access

git clone https://github.com/whitesource-ft/ws-multi-repo-scanner.git & cd ws-multi-repo-scanner
chmod +x gitlab-scanner.sh

GitLab Access

export GITLAB_TOKEN=<your-gitlab-personal-access-token>
export GITLAB_USER=<your-gitlab-username>
git config --global url."https://${GITLAB_USER}:${GITLAB_TOKEN}@gitlab.com".insteadOf "https://gitlab.com"

You can double-check your global git config by using git config --global --list

WhiteSource Access

export WS_APIKEY=<your-api-key>
export WS_USERKEY=<your-user-key>

Execution

Execution Instructions

./gitlab-scanner.sh gitlab.com <your-gitlab-group-id> $GITLAB_TOKEN

Exit Codes

Logo

License

WhiteSource SAST Multi-Repo Scanners

The WhiteSource SAST Multi-Repo Scanners (WS-SAST-Scanners) are a group of bash scripts for scanning multiple code repositories using WhiteSource SAST & ThunderScan.

Supported Environments

  • List of Git repositories

Supported Operating Systems

  • Linux (Bash): CentOS, Debian, Ubuntu, RedHat

Prerequisites

  • git
  • curl
  • jq
  • tscli or wscli

Execution

Execution Instructions

  • Individual script usage instructions are located within each script, but the general usage is the following where scanlist.txt is a list of git repositories for cloning
chmod +x script.sh
./script.sh scanlist.txt
  • ws-sast-scanner - WS-SAST
  • ts-scanner - ThunderScan script without templates
  • ts-scanner-template - ThunderScan script that uses templates

Exit Codes

About

WhiteSource Unified Agent wrapper for scanning multiple remote repositories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages