Skip to content

Commit

Permalink
proper trufflehog args
Browse files Browse the repository at this point in the history
  • Loading branch information
lvrach committed Aug 29, 2024
1 parent b63ae32 commit 40092fc
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,26 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build image (no-push)
uses: docker/build-push-action@v6
with:
context: .
platforms: ${{ matrix.build-config.platform }}
push: false
tags: local-rudder-server:${{ github.sha }}
outputs: type=docker,dest=/tmp/local-rudder-server.tar
- name: Run TruffleHog
run: |
docker pull trufflesecurity/trufflehog:latest
docker run --rm -v /tmp:/tmp \
trufflesecurity/trufflehog:latest \
docker --image file:///tmp/local-rudder-server.tar \
--github-actions \
--no-verification \
--fail
- name: Build and push
uses: docker/build-push-action@v6
if: success()
with:
context: .
platforms: ${{ matrix.build-config.platform }}
Expand Down Expand Up @@ -181,23 +199,23 @@ jobs:
with:
username: rudderlabs
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build image
- name: Build image
uses: docker/build-push-action@v6
with:
context: .
platforms: ${{ matrix.build-config.platform }}
push: false
tags: myimage:${{ github.sha }}
outputs: type=docker,dest=/tmp/myimage.tar

tags: local-rudder-server:${{ github.sha }}
outputs: type=docker,dest=/tmp/local-rudder-server.tar
- name: Run TruffleHog
run: |
docker pull trufflesecurity/trufflehog:latest
docker run --rm -v /tmp:/tmp \
trufflesecurity/trufflehog:latest \
docker --image file:///tmp/myimage.tar \
--only-verified
docker --image file:///tmp/local-rudder-server.tar \
--github-actions \
--no-verification \
--fail
- name: Build and push
if: success()
uses: docker/build-push-action@v6
Expand Down

0 comments on commit 40092fc

Please sign in to comment.