From dbf15b222b67c6f69d71b86ab87d0d415d22c06d Mon Sep 17 00:00:00 2001 From: Josh Wolf Date: Wed, 7 Aug 2024 09:46:31 -0400 Subject: [PATCH] add ggshield tests (#25715) #13623 Signed-off-by: Josh Wolf --- ggshield.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ggshield.yaml b/ggshield.yaml index def7cd468d6..8d45580bdfb 100644 --- a/ggshield.yaml +++ b/ggshield.yaml @@ -1,12 +1,14 @@ package: name: ggshield version: 1.30.2 - epoch: 0 + epoch: 1 description: Find and fix 360+ types of hardcoded secrets and 70+ types of infrastructure-as-code misconfigurations. copyright: - license: MIT dependencies: runtime: + - git + - py3-certifi - python3 environment: @@ -42,3 +44,13 @@ update: identifier: GitGuardian/ggshield use-tag: true strip-prefix: v + +test: + pipeline: + - name: Check ggshield version + runs: | + ggshield --version + - name: Check ggshield API status without API key + runs: | + output=$(ggshield api-status 2>&1 || true) + echo "$output" | grep "Error: A GitGuardian API key is needed to use ggshield."