Skip to content

rancherlabs/drone-plugin-fossa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drone-plugin-fossa

Drone plugin for FOSSA.

Usage

Basic

The following snippet should be applied to the .drone.yml file:

kind: pipeline
name: fossa

steps:
- name: fossa  
  image: rancher/drone-fossa:latest
  settings:
    api_key:
      from_secret: FOSSA_API_KEY

By default, this plugin will run the analyze command per the generic CI documentation for FOSSA.

Advanced

Command

kind: pipeline
name: fossa

steps:
- name: fossa-test
  image: rancher/drone-fossa:latest
  settings:
    api_key:
      from_secret: FOSSA_API_KEY
    command: test

Alternate Syntax

kind: pipeline
name: fossa

steps:
- name: fossa-test
  image: rancher/drone-fossa:latest
  settings:
    api_key:
      from_secret: FOSSA_API_KEY
    command:
      - test

Note: this syntax only accepts a single command.

Debug

kind: pipeline
name: fossa

steps:
- name: fossa  
  image: rancher/drone-fossa:latest
  settings:
    api_key:
      from_secret: FOSSA_API_KEY
    debug: true

Reference