-
Notifications
You must be signed in to change notification settings - Fork 10
/
action.yml
39 lines (37 loc) · 1.1 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: zarn-sast
description: A lightweight static security analysis tool (SAST) for modern Perl Apps
author: Heitor Gouvêa
branding:
icon: "shield"
color: "blue"
inputs:
source:
description: 'Configure a source directory to do static analysis'
required: false
default: "./${{ github.repository }}"
rules:
description: 'Define YAML file with rules'
required: false
default: './rules/default.yml'
ignore:
description: 'Define a file or directory to ignore'
required: false
sarif_file:
description: 'Define the SARIF output file'
required: false
default: './${{ github.repository }}/result.sarif'
runs:
using: "composite"
steps:
- shell: bash
env:
SOURCE: ${{ inputs.source }}
RULES: ${{ inputs.rules }}
IGNORE: ${{ inputs.ignore }}
SARIF_FILE: ${{ inputs.sarif_file }}
run: |
docker run -v ./:/usr/src/zarn/${{ github.repository }} ghcr.io/htrgouvea/zarn/zarn:latest \
--source ${SOURCE:-''} \
--rules ${RULES:-''} \
--ignore ${IGNORE:-''} \
--sarif ${SARIF_FILE:-''}