Skip to content

Find, verify, and analyze leaked credentials

make dogfood

Dustin Decker8b15bc0a0afe
diff --git a/.github/workflows/dogfood.yml b/.github/workflows/dogfood.yml
new file mode 100644
index 000000000..f96ed05ff
--- /dev/null
+++ b/.github/workflows/dogfood.yml
@@ -0,0 +1,29 @@
+
+name: Dogfood
+
+on:
+ push:
+ tags:
+ - v*
+ branches:
+ - main
+ pull_request:
+
+jobs:
+ test:
+ strategy:
+ matrix:
+ go-version: [1.17.x]
+ os: [ubuntu-latest]
+ runs-on: ${{ matrix.os }}
+ steps:
+ - name: Install Go
+ uses: actions/setup-go@v2
+ with:
+ go-version: ${{ matrix.go-version }}
+ - name: Checkout code
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+ - name: Dogfood
+ run: make dogfood
diff --git a/Makefile b/Makefile
index bef235515..95cb77887 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,10 @@ PROTOS_IMAGE=us-docker.pkg.dev/thog-artifacts/public/go-ci-1.17-1
.PHONY: protos
.PHONY: protos-windows
.PHONY: vendor
+.PHONY: dogfood
+
+dogfood:
+ CGO_ENABLED=0 go run . git file://. --json --debug
install:
CGO_ENABLED=0 go install .