2.37 KB
Newer Older
Fabien Catteau's avatar
Fabien Catteau committed
1 2
# bundler-audit analyzer

Lucas Charles's avatar
Lucas Charles committed
Dependency Scanning for Ruby projects. It's based on [bundler-audit](
Fabien Catteau's avatar
Fabien Catteau committed
4 5 6 7 8 9 10 11

This analyzer is written in Go using
the [common library](
shared by all analyzers.

The [common library](
contains documentation on how to run, test and modify this analyzer.

12 13 14
## How to update the upstream Scanner

- Check for the latest version at
- Compare with the value of `SCANNER_VERSION` in the [Dockerfile](./Dockerfile)
16 17 18 19 20 21 22 23
- If an update is available, create a branch and bump the version.
- Trigger a pipeline on all relevant [test projects](,Secure-QA):
    - trigger a manual pipeline on `master` branch with these variables:
      - `DS_DEFAULT_ANALYZERS`: "" (just leave the form input blank to send an empty string)
      - `DS_ANALYZER_IMAGES`: "_docker_image_tag_for_your_branch_," ([See documentation](
          There's one gotcha here: on top of your custom analyzer image, you also need to give the usual Genmnasium analyzer image otherwise the QA may fail.

Igor Frenkel's avatar
Igor Frenkel committed
24 25 26 27 28 29 30 31 32 33 34
## Running the analyzer in airgapped or internal networks

By default, this analyzer will make a network call to update its internal advisory DB ( at scan time.

1. To prevent any scan-time updates use `BUNDLER_AUDIT_UPDATE_DISABLED="true"`.
2. To ensure the advisory DB is up to date against a fork you control, use `BUNDLER_AUDIT_ADVISORY_DB_URL` and `BUNDLER_AUDIT_ADVISORY_DB_REF_NAME`.

* `BUNDLER_AUDIT_ADVISORY_DB_URL` is the Git URL of the advisory DB `bundler-audit` gem uses (forked from repository and following the same internal structure).
* `BUNDLER_AUDIT_ADVISORY_DB_REF_NAME` is Git the ref name in the advisory DB above (can be a commit hash, a branch, or a tag name).

Fabien Catteau's avatar
Fabien Catteau committed
35 36 37 38 39 40 41
## Contributing

Contributions are welcome, see [``]( for more details.

## License

This code is distributed under the MIT license, see the [LICENSE](LICENSE) file.