GitHub Action
tern-action
v1.3.0
Latest version
Required docker image to scan. Example: alpine:latest
Output format. Can be either: json
, html
, spdxtagvalue
, spdxjson
, yaml
or human
Optional defaults to json
Optional Name of the output file. Defaults to tern.<format>
output JSON string
output JSON file.
tern
CLI will automatically scan your image`:
name: build
on: [push]
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: philips-labs/[email protected]
id: scan
with:
image: alpine:latest
format: yaml
output: alpine.yaml
- uses: actions/upload-artifact@v2
with:
name: tern
path: ${{ steps.scan.outputs.file }}