【问题标题】:Trufflehog with circleci松露猪与circleci
【发布时间】:2022-08-05 02:02:56
【问题描述】:

我正在尝试将 Trufflehog 与 circleci 集成以对每个 PR 进行秘密扫描。我使用了一个安装了 Trufflehog-3.6.11 二进制文件的 docker 镜像。我的 circleci 配置如下。

scan_trufflehog:
    docker:
      - image: gcr.io/********/trufflehog:3.6.11
        auth:
          username: ********
          password: ********
    steps:
      - checkout
      - run: 
          command: |
            trufflehog filesystem --directory=. --debug -j

作业失败并出现错误:

{\"level\":\"debug\",\"msg\":\"running version 3.6.11\",\"time\":\"2022-07-28T12:40:02Z\"}
2022/07/28 12:40:02 [updater parent] run
{\"error\":\"cannot move binary (exit status 1)\",\"level\":\"fatal\",\"msg\":\"error occured with trufflehog updater ????\",\"time\":\"2022-07-28T12:40:02Z\"}

Exited with code exit status 1

如果我使用 git/github 选项而不是文件系统,我会得到同样的错误。 有什么建议我可能会出错吗?

    标签: docker go security circleci scanning


    【解决方案1】:

    使用 --no-update 运行它,这对我有用。我在 docker 桌面上运行了一个 docker 映像,在添加那个额外的标志之前,我遇到了和你一样的错误。

    trufflehog github --no-update --repo=https://github.com/trufflesecurity/test_keys.git

    【讨论】:

      猜你喜欢
      • 2018-11-15
      • 2020-02-07
      • 1970-01-01
      • 1970-01-01
      • 2012-06-14
      • 2019-06-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多