Skip to content

Commit 2942086

Browse files
committed
revert change
1 parent 6206fbe commit 2942086

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

.github/workflows/quality-checks.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -186,19 +186,20 @@ jobs:
186186
echo "Poetry version $POETRY_VERSION is outside the required range so not installing plugin-export"
187187
fi
188188
poetry export -f requirements.txt --with dev --without-hashes --output=requirements.txt
189-
cat requirements.txt
190189
- name: Check python licenses
190+
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8
191191
if: ${{ steps.check_languages.outputs.uses_poetry == 'true' }}
192-
run: |
193-
trivy fs \
194-
--skip-files "**/package-lock.json,**/go.sum,**/pom.xml" \
195-
--severity CRITICAL,HIGH \
196-
--scanners license \
197-
--format table \
198-
--output license_scan_python.txt \
199-
--exit-code 1 \
200-
--config trivy.yaml \
201-
.
192+
with:
193+
scan-type: "fs"
194+
skip-files: "**/poetry.lock,**/go.sum,**/pom.xml,**/package-lock.json"
195+
scan-ref: "."
196+
severity: "CRITICAL,HIGH"
197+
scanners: "license"
198+
format: "table"
199+
output: "license_scan_python.txt"
200+
exit-code: "1"
201+
list-all-pkgs: "false"
202+
trivy-config: trivy.yaml
202203
env:
203204
VIRTUAL_ENV: "./.venv/"
204205
- name: remove requirements.txt

0 commit comments

Comments
 (0)