forked from snyk/actions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
32 lines (32 loc) · 849 Bytes
/
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
name: "Snyk Docker"
description: "Check your Docker images for vulnerabilties using Snyk"
author: "Gareth Rushgrove"
branding:
icon: "alert-triangle"
color: "yellow"
inputs:
command:
description: "Which Snyk command to run, defaults to test"
default: test
args:
description: "Additional arguments to pass to Snyk"
image:
description: "Image to test"
json:
description: "Output a snyk.json file with results if running the test command"
default: false
sarif:
description: "Output a snyk.sarif file with results if running the test command"
default: true
runs:
using: "docker"
image: "docker://snyk/snyk:docker"
env:
SNYK_INTEGRATION_NAME: GITHUB_ACTIONS
SNYK_INTEGRATION_VERSION: docker
args:
- snyk
- ${{ inputs.command }}
- ${{ inputs.args }}
- --docker
- ${{ inputs.image }}