Skip to content

Commit

Permalink
Extra parameter for ort docker version
Browse files Browse the repository at this point in the history
Add optional parameter to force certain version of ort docker image.
  • Loading branch information
JeroenKnoops authored Feb 13, 2021
1 parent 94c7744 commit f3b14a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
description: "spdx-builder-version"
required: false
default: 'v0.4.0'
ort-version:
description: "philipssoftware/ort version"
required: true
default: 'latest'

runs:
using: "composite"
Expand All @@ -27,7 +31,7 @@ runs:
run: |
# Allow ORT to fail. When one repository can't be found, the rest still makes sense to analyse
set +e
docker run -v ${{ github.workspace }}:/project philipssoftware/ort --info analyze -f JSON -i /project -o /project/ort
docker run -v ${{ github.workspace }}:/project philipssoftware/ort:${{ input.ort-version}} --info analyze -f JSON -i /project -o /project/ort
set -e
shell: bash
- name: Create SPDX file
Expand Down

0 comments on commit f3b14a3

Please sign in to comment.