|
| 1 | +# Panther is a Cloud-Native SIEM for the Modern Security Team. |
| 2 | +# Copyright (C) 2023 Panther Labs Inc |
| 3 | +# |
| 4 | +# This program is free software: you can redistribute it and/or modify |
| 5 | +# it under the terms of the GNU Affero General Public License as |
| 6 | +# published by the Free Software Foundation, either version 3 of the |
| 7 | +# License, or (at your option) any later version. |
| 8 | +# |
| 9 | +# This program is distributed in the hope that it will be useful, |
| 10 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | +# GNU Affero General Public License for more details. |
| 13 | +# |
| 14 | +# You should have received a copy of the GNU Affero General Public License |
| 15 | +# along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 16 | + |
| 17 | +on: pull_request |
| 18 | + |
| 19 | +jobs: |
| 20 | + check_packs: |
| 21 | + name: check packs |
| 22 | + runs-on: ubuntu-latest |
| 23 | + |
| 24 | + steps: |
| 25 | + - name: Checkout panther-analysis |
| 26 | + uses: actions/checkout@v4 |
| 27 | + |
| 28 | + - name: Set python version |
| 29 | + uses: actions/setup-python@v4 |
| 30 | + with: |
| 31 | + python-version: '3.9' |
| 32 | + |
| 33 | + - name: Install panther_analysis_tool |
| 34 | + run: pip install panther_analysis_tool |
| 35 | + |
| 36 | +# - name: test warning |
| 37 | +# run: echo "::warning ::PACKS ARE OUT OF DATE" |
| 38 | + |
| 39 | + - name: Check packs |
| 40 | + run: panther_analysis_tool check-packs |
| 41 | + id: check-packs |
| 42 | + continue-on-error: true |
| 43 | + |
| 44 | + - name: Comment PR |
| 45 | + uses: thollander/actions-comment-pull-request@v2 |
| 46 | + with: |
| 47 | + mode: upsert |
| 48 | + message: | |
| 49 | + ${{ steps.check-packs.outputs.* }} :scream: |
| 50 | +
|
| 51 | + - name: The job has failed |
| 52 | + if: ${{ failure() }} |
| 53 | + run: echo "::warning ::PACKS ARE OUT OF DATE" |
| 54 | +# echo ::set-output name=exit_code::$? |
| 55 | +# echo "Exited with $?" |
0 commit comments