Skip to content

clj-holmes/clj-watson-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

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

clj-watson action

Action to execute clj-watson security dependency scan in Clojure/Clojurescript projects.

Getting Started

Simply add the following snippet to your GitHub actions workflow.

- name: Dependencies scan
  uses: clj-holmes/clj-watson-action@main

Options

It's also possible to specify the following options:

  • clj-watson-sha [Required]
  • clj-watson-tag [Required]
  • aliases (separated by comma)
  • database-strategy (github-advisory or dependency-check)
  • deps-edn-path [Required]
  • dependency-check-properties [Default: default property file]
  • output-type (json, edn or stdout) [Default: stdout]
  • fail-on-result (true or false) [Default: false]
  • suggest-fix (true or false) [Default: false]
  • output-file [Default: nil]
- name: Dependency scan
  uses: clj-holmes/clj-watson-action@main
  with:
    clj-watson-sha: "9972a33"
    clj-watson-tag: "v4.0.0"
    database-strategy: github-advisory
    aliases: clojure-lsp,test 
    deps-edn-path: 'deps.edn'
    output-type: 'stdout-simple'
    suggest-fix: 'true'
    fail-on-result: 'true'
    output-file: result.txt
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}