Files
trufflehog/.github/workflows/detector-tests.yml
Dustin Decker 9089fb7df1 Include all detector tests for captain (#3329)
* Use captain for test aggregation

* no retries

* include all detector tests
2024-09-24 12:04:56 -07:00

30 lines
734 B
YAML

name: Detectors Aggregation
on:
workflow_dispatch:
schedule:
- cron: "0 8 * * *"
jobs:
test-detectors:
if: ${{ github.repository == 'trufflesecurity/trufflehog' }}
runs-on: ubuntu-latest
permissions:
actions: "read"
contents: "read"
id-token: "write"
steps:
- uses: actions/setup-go@v5
- uses: actions/checkout@v4
- name: Install gotestsum
uses: jaxxstorm/[email protected]
with:
repo: gotestyourself/gotestsum
- uses: rwx-research/setup-captain@v1
- name: Test Go
run: |
export CGO_ENABLED=1
captain run detectors
env:
RWX_ACCESS_TOKEN: ${{ secrets.RWX_ACCESS_TOKEN }}