Make sure VEX report is up-to-date with a CI check (#31759)

This commit is contained in:
Lucas Manuel Rodriguez 2025-08-11 16:55:31 -03:00 committed by GitHub
parent 418cd8b416
commit 4265bed7f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 3 deletions

View file

@ -46,10 +46,10 @@ jobs:
- name: Verify golang generated documentation is up-to-date
run: |
make doc
make generate-doc
if [[ $(git diff) ]]; then
echo "❌ fail: uncommited changes"
echo "please run 'make doc' and commit the changes"
echo "please run 'make generate-doc' and commit the changes"
git --no-pager diff
exit 1
fi
@ -65,3 +65,13 @@ jobs:
git --no-pager diff
exit 1
fi
- name: Verify VEX report is up-to-date
run: |
make vex-report
if [[ $(git diff) ]]; then
echo "❌ fail: uncommited changes"
echo "please run 'make vex-report' and commit the changes"
git --no-pager diff
exit 1
fi

View file

@ -412,7 +412,7 @@ doc: .prefix
go generate github.com/fleetdm/fleet/v4/server/fleet
go generate github.com/fleetdm/fleet/v4/server/service/osquery_utils
generate-doc: doc vex-report
generate-doc: doc
.help-short--deps:
@echo "Install dependent programs and libraries"