We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0795917 commit c280341Copy full SHA for c280341
1 file changed
.github/workflows/ci.yml
@@ -30,7 +30,11 @@ jobs:
30
detect-secrets scan auth_platform dev-portal-ui/dev-portal-ui > new.baseline || true
31
if [ -f .secrets.baseline ]; then
32
echo "Comparing new scan to committed baseline (scoped)..."
33
- git --no-pager diff --no-index --exit-code .secrets.baseline new.baseline
+ # Strip the generated_at timestamp from both files before comparing so
34
+ # timestamp-only differences won't fail the job.
35
+ sed '/"generated_at"/d' .secrets.baseline > .secrets.baseline.filtered || true
36
+ sed '/"generated_at"/d' new.baseline > new.baseline.filtered || true
37
+ git --no-pager diff --no-index --exit-code .secrets.baseline.filtered new.baseline.filtered
38
else
39
echo "No .secrets.baseline found in repo; failing to avoid accidental leaks"
40
cat new.baseline || true
0 commit comments