Skip to content

Commit

Permalink
add linter and fix the sast
Browse files Browse the repository at this point in the history
  • Loading branch information
htrgouvea committed Jan 25, 2024
1 parent 5b5c7a6 commit ad4e393
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
files: critic
12 changes: 7 additions & 5 deletions .github/workflows/zarn.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

0 comments on commit ad4e393

Please sign in to comment.