Skip to content
shield

GitHub Action

clj-watson (Clojure)

main Latest version

clj-watson (Clojure)

shield

clj-watson (Clojure)

Executes clj-watson dependency security scan in clojure/clojurescript projects

Installation

Copy and paste the following snippet into your .yml file.

              

- name: clj-watson (Clojure)

uses: clj-holmes/clj-watson-action@main

Learn more about this action in clj-holmes/clj-watson-action

Choose a version

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 }}