chore: test script
Browse files- scripts/platforms.sh +36 -0
scripts/platforms.sh
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
export PRODUCT_NAME="asrto-miscalculator"
|
| 3 |
+
export PRODUCT_VERSION="2.0"
|
| 4 |
+
export REPO_BASE_NAME="attstore"
|
| 5 |
+
export ORG="scribe-security"
|
| 6 |
+
|
| 7 |
+
export SCRIBE_TOKEN=$TOKEN
|
| 8 |
+
export VALINT_CACHE_ENABLE=false
|
| 9 |
+
export SCRIBE_URL=http://127.0.0.1:5003
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
platforms --log-file ~/code/attstore/tmp/platforms-log-discover.txt --log-level DEBUG \
|
| 13 |
+
discover github \
|
| 14 |
+
--token $GITHUB_TOKEN \
|
| 15 |
+
--organization.mapping *$ORG::$PRODUCT_NAME::$PRODUCT_VERSION \
|
| 16 |
+
--repository.mapping *$REPO_BASE_NAME::$PRODUCT_NAME::$PRODUCT_VERSION \
|
| 17 |
+
--commit.skip --workflow.skip
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
platforms --log-file ~/code/attstore/tmp/platforms-log-bom.txt --log-level DEBUG \
|
| 21 |
+
bom --valint.scribe.client-secret $SCRIBE_TOKEN \
|
| 22 |
+
github \
|
| 23 |
+
--token $GITHUB_TOKEN \
|
| 24 |
+
--organization.mapping *$ORG::$PRODUCT_NAME::$PRODUCT_VERSION \
|
| 25 |
+
--repository.mapping *$REPO_BASE_NAME::$PRODUCT_NAME::$PRODUCT_VERSION \
|
| 26 |
+
--hook opengrep
|
| 27 |
+
|
| 28 |
+
platforms --log-file ~/code/attstore/tmp/platforms-log-verify.txt --log-level DEBUG \
|
| 29 |
+
verify --valint.scribe.client-secret $SCRIBE_TOKEN \
|
| 30 |
+
github \
|
| 31 |
+
--token $GITHUB_TOKEN \
|
| 32 |
+
--scope.organization $ORG \
|
| 33 |
+
--scope.repository $REPO_BASE_NAME \
|
| 34 |
+
--organization.mapping *$ORG::$PRODUCT_NAME::$PRODUCT_VERSION \
|
| 35 |
+
--repository.mapping *$REPO_BASE_NAME::$PRODUCT_NAME::$PRODUCT_VERSION \
|
| 36 |
+
--initiative sspb-gh.yaml@v2
|