mirror of
https://github.com/falcosecurity/falco.git
synced 2025-10-21 19:44:57 +00:00
42 lines
1.4 KiB
YAML
42 lines
1.4 KiB
YAML
# NOTE: it is UNSAFE to run ANY kind of script when using the pull_request_target trigger!
|
|
# DO NOT TOUCH THIS FILE UNLESS THE TRIGGER IS CHANGED.
|
|
# See warning in https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
|
|
|
|
name: Engine version checks (weak)
|
|
on:
|
|
pull_request_target:
|
|
paths:
|
|
- 'userspace/engine/*.cpp'
|
|
- 'userspace/engine/*.h'
|
|
|
|
jobs:
|
|
paths-filter:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
engine_version_changed: ${{ steps.filter.outputs.engine_version }}
|
|
steps:
|
|
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
|
|
- uses: dorny/paths-filter@v2
|
|
id: filter
|
|
with:
|
|
filters: |
|
|
engine_version:
|
|
- 'userspace/engine/falco_engine_version.h'
|
|
|
|
check-engine-version-weak:
|
|
runs-on: ubuntu-22.04
|
|
permissions:
|
|
pull-requests: write
|
|
needs: paths-filter
|
|
if: needs.paths-filter.outputs.engine_version_changed == 'false'
|
|
steps:
|
|
- name: Check driver Falco engine version
|
|
uses: mshick/add-pr-comment@v2
|
|
with:
|
|
message: |
|
|
This PR may bring feature or behavior changes in the Falco engine and may require the engine version to be bumped.
|
|
|
|
Please double check **userspace/engine/falco_engine_version.h** file. See [versioning for FALCO_ENGINE_VERSION](https://github.com/falcosecurity/falco/blob/master/RELEASE.md#falco-repo-this-repo).
|
|
|
|
/hold
|