-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
25 lines (22 loc) · 691 Bytes
/
action.yml
File metadata and controls
25 lines (22 loc) · 691 Bytes
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
name: Scan with cfn-lint
inputs:
path:
description: "The path of the directory or file to scan"
default: "./**/*.yaml"
output-file:
description: "The path to the output file"
default: "./deepsource-report.sarif"
extra-data-json:
description: "Extra data as stringified JSON to be passed to the analyzer"
required: false
runs:
using: "composite"
steps:
- name: Scan files with cfn-lint
uses: scottbrenner/cfn-lint-action@v2
with:
version: ${{ fromJSON(inputs.extra-data-json).version }}
- name: Run cfn-lint
run: |
cfn-lint -t ${{ inputs.path }} -f sarif > ${{ inputs.output-file }}
continue-on-error: true