From ad4e393b743cd0d56334288939f007825918b4bc Mon Sep 17 00:00:00 2001 From: htrgouvea Date: Thu, 25 Jan 2024 18:29:44 -0300 Subject: [PATCH] add linter and fix the sast --- .github/workflows/linter.yml | 16 ++++++++++++++++ .github/workflows/zarn.yml | 12 +++++++----- 2 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..1bc1e02 --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,16 @@ +name: Linter / Perl Critic + +on: + pull_request: + branches: + - main + +jobs: + critic: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Run Perl::Critic + uses: natanlao/perl-critic-action@v1.1 + with: + files: critic \ No newline at end of file diff --git a/.github/workflows/zarn.yml b/.github/workflows/zarn.yml index f66840c..f552764 100644 --- a/.github/workflows/zarn.yml +++ b/.github/workflows/zarn.yml @@ -1,11 +1,13 @@ name: ZARN on: + push: + branches: [ "main" ] pull_request: - branches: - - main - - develop - + branches: [ "main" ] + schedule: + - cron: '28 23 * * 1' + jobs: build: runs-on: ubuntu-latest @@ -19,7 +21,7 @@ jobs: cd zarn && sudo cpanm --installdeps . - name: Hunt for findings run: | - perl zarn/zarn.pl --source . --sarif zarn.sarif + cd zarn && perl zarn.pl --source ../ --sarif ../zarn.sarif - uses: github/codeql-action/upload-sarif@v3 with: sarif_file: zarn.sarif \ No newline at end of file