076331ca6b
* Update github-actions * Match scripts/lint.sh golangci-lint version to CI workflow Local linting pinned v2.11.4 while the workflow now pins v2.12.2, so goconst, dupl, and gosec results could diverge between local and CI runs. Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Bryan Beverly <[email protected]> Co-authored-by: Cursor <[email protected]>
30 lines
909 B
YAML
30 lines
909 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@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
|
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
|
|
- name: Install gotestsum
|
|
uses: jaxxstorm/action-install-gh-release@25e24d2d23ae098373794ef1d6faecb48ee52da8 # v3.0.0
|
|
with:
|
|
repo: gotestyourself/gotestsum
|
|
- uses: rwx-research/setup-captain@f761ee3671e4c027299f8a5842a53fba8ddd8e37 # v1.4.1
|
|
- name: Test Go
|
|
run: |
|
|
export CGO_ENABLED=1
|
|
captain run detectors
|
|
env:
|
|
RWX_ACCESS_TOKEN: ${{ secrets.RWX_ACCESS_TOKEN }}
|