Files
trufflehog/.github/workflows/detector-tests.yml
Eng Zer Jun fa703eacf6 chore: run setup-go after checkout (#4143)
"Restore cache failed: Dependencies file is not found in
/home/runner/work/trufflehog/trufflehog. Supported file pattern: go.sum"

Signed-off-by: Eng Zer Jun <[email protected]>
2025-05-19 16:18:13 -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/checkout@v4
- uses: actions/setup-go@v5
- 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 }}