-
Notifications
You must be signed in to change notification settings - Fork 7
/
action.yml
40 lines (40 loc) · 1.01 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
40
# action.yml
name: 'Code-Pathfinder OSS'
description: 'Code-Pathfinder open-source alternative to CodeQL'
author: 'Shivasurya [email protected]'
branding:
icon: "shield"
color: "blue"
inputs:
command:
description: 'Command to run example: ci, query'
required: true
default: 'ci'
project:
description: 'Source code to scan. eg: /path/to/project'
required: true
default: ${{ github.workspace }}
ruleset:
description: 'Predefined rules eg: cpf/java or rules directory'
required: false
output:
description: 'Output format eg: json'
required: false
default: 'json'
output-file:
description: 'Output file name eg: output.json'
required: false
default: 'output.json'
runs:
using: 'docker'
image: 'docker://shivasurya/code-pathfinder:stable-latest'
args:
- ${{ inputs.command }}
- --project
- ${{ inputs.project }}
- --ruleset
- ${{ inputs.ruleset }}
- --output
- ${{ inputs.output }}
- --output-file
- ${{ inputs.output-file }}