mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-19 14:26:01 -04:00
ci: add sbom validation using pre-commit's post-commit stage
With09ba070b7e
("fix: allow to use older pre-commit hook version") andb93cc581a5
("fix: set default pre-commit hook stages to pre-commit..") we set the default pre-commit hook stage to commit/pre-commit, which avoids running the pre-commit plugins/hooks multiple times for different stages. Unfortunately this also affects "pre-commit run" used in CI and now it runs only plugins which are by default using the commit/pre-commit stage. Meaning the sbom validation, which uses post-commit, is not run at all. This adds an explicit pre-commit command for validate-sbom-manifest plugin, which needs to be started in post-commit stage. Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
This commit is contained in:
parent
18f7ce2bd6
commit
0f898539a0
@ -15,6 +15,7 @@ check_pre_commit:
|
||||
script:
|
||||
- fetch_submodules
|
||||
- pre-commit run --files $MODIFIED_FILES
|
||||
- pre-commit run --hook-stage post-commit validate-sbom-manifest
|
||||
|
||||
check_version:
|
||||
# Don't run this for feature/bugfix branches, so that it is possible to modify
|
||||
|
Loading…
Reference in New Issue
Block a user