From bfd887c40e031124842a947c58416a717ee3d41e Mon Sep 17 00:00:00 2001 From: Jonathan Christison Date: Wed, 28 Jun 2023 10:22:31 +0100 Subject: [PATCH] Add hack/examples of calling single endpoints --- hack/single-brew-scan-stage.sh | 9 +++++++++ hack/single-git-scan-stage.sh | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100755 hack/single-brew-scan-stage.sh create mode 100755 hack/single-git-scan-stage.sh diff --git a/hack/single-brew-scan-stage.sh b/hack/single-brew-scan-stage.sh new file mode 100755 index 0000000..0622bdd --- /dev/null +++ b/hack/single-brew-scan-stage.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +curl --get \ + --data-urlencode "brewId=xterm-366-8.el9" \ + https://osh-pct-security-tooling.apps.ocp-c1.prod.psi.redhat.com/api/v1a/Scan/single/brew -vv + +curl --get https://osh-pct-security-tooling.apps.ocp-c1.prod.psi.redhat.com/api/v1a/Scan/2 -vv +curl --get https://osh-pct-security-tooling.apps.ocp-c1.prod.psi.redhat.com/api/v1a/Scan/2/run -vv + diff --git a/hack/single-git-scan-stage.sh b/hack/single-git-scan-stage.sh new file mode 100755 index 0000000..d82777f --- /dev/null +++ b/hack/single-git-scan-stage.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +curl --get \ + --data-urlencode "repo=https://code.engineering.redhat.com/gerrit/quarkusio/quarkus.git" \ + --data-urlencode "ref=2.13.8.Final-redhat-00001" \ + https://osh-pct-security-tooling.apps.ocp-c1.prod.psi.redhat.com/api/v1a/Scan/single/git -vv + +curl --get https://osh-pct-security-tooling.apps.ocp-c1.prod.psi.redhat.com/api/v1a/Scan/1 -vv +curl --get https://osh-pct-security-tooling.apps.ocp-c1.prod.psi.redhat.com/api/v1a/Scan/1/run -vv +