Skip to content


GitHub stars sarif GitHub release (latest SemVer) GitHub last commit GitHub commit activity GitHub contributors

dustilock documentation

dustilock - GitHub

Configuration in MegaLinter

Variable Description Default value
REPOSITORY_DUSTILOCK_ARGUMENTS User custom arguments to add in linter CLI call
Ex: -s --foo "bar"
REPOSITORY_DUSTILOCK_PRE_COMMANDS List of bash commands to run before the linter None
REPOSITORY_DUSTILOCK_POST_COMMANDS List of bash commands to run after the linter None
REPOSITORY_DUSTILOCK_DISABLE_ERRORS Run linter but consider errors as warnings false

MegaLinter Flavours

This linter is available in the following flavours

Flavor Description Embedded linters Info
all Default MegaLinter Flavor 112 Docker Image Size (tag) Docker Pulls
security Optimized for security 21 Docker Image Size (tag) Docker Pulls

Behind the scenes

How are identified applicable files

  • If this linter is active, all files will always be linted

How the linting is performed

dustilock is called once on the whole project directory (project CLI lint mode)

  • filtering can not be done using MegaLinter configuration variables,it must be done using dustilock configuration or ignore file (if existing)
  • VALIDATE_ALL_CODEBASE: false does not make dustilock analyze only updated files

Example calls


Help content

usage: DustiLock [-h|--help] [-r|--recursive] [-a|--audit] [-p|--path

                 a tool to find which of your dependencies is susceptible to
                 Dependency Confusion attack


  -h  --help       Print help information
  -r  --recursive  scan all files recursively
  -a  --audit      audit only mode
  -p  --path       the path to scan. default is cwd

Installation on mega-linter Docker image

  • Dockerfile commands :
RUN ML_THIRD_PARTY_DIR=/download/dustilock && \
    mkdir -p ${ML_THIRD_PARTY_DIR} && \
    git clone ${ML_THIRD_PARTY_DIR} && \
    cd ${ML_THIRD_PARTY_DIR} && \
    go build && go clean --cache && \
    chmod +x dustilock && \
    mv "${ML_THIRD_PARTY_DIR}/dustilock" /usr/bin/ && \
    find ${ML_THIRD_PARTY_DIR} -type f -not -name 'LICENSE*' -delete -o -type d -empty -delete && \
    cd /

  • APK packages (Linux):