/trojansourcedetector-ci

trojansourcedetector in Docker for Gitlab CI

Primary LanguageDockerfileMIT LicenseMIT

Docker trojansourcedetector

Docker image build for trojansourcedetector, with examples for Gitlab CI.

GitHub Workflow Status

Table of Contents

Usage

Images

  • docker pull ghcr.io/avisi-cloud/trojansourcedetector:1.0.1

Configuration

See the trojansourcedetector documentation.

Usage of /usr/local/bin/trojansourcedetector:
  -config string
        JSON file containing the configuration. (default ".trojansourcedetector.json")

By default, we use the following config.json file:

{
  "directory": ".",
  "exclude": [".git/*", ".git/*/*", ".git/*/*/*"],
  "parallelism": 10,
  "detect_bidi": true,
  "extensions": [
    ".c",
    ".csx",
    ".cpp",
    ".go",
    ".h",
    ".java",
    ".js",
    ".kt",
    ".py",
    ".rs",
    ".ts"
  ]
}

Examples

Gitlab CI

trojansource-detector:
   image: ghcr.io/avisi-cloud/trojansourcedetector:1.0.1
   script:
     - trojansourcedetector -config=/home/trojansourcedetector/config.json

Docker run

docker run -v $(pwd):/build ghcr.io/avisi-cloud/trojansourcedetector:1.0.1 

Automated build

This image is build at least once a month automatically.

Contribute

PRs accepted. All issues should be reported in the Github issue tracker.

License

MIT © Avisi Cloud