mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
Branch was auto-updated.
This commit is contained in:
@@ -464,7 +464,9 @@ workflows:
|
||||
- build-package
|
||||
filters:
|
||||
tags:
|
||||
only: /.*/
|
||||
only: /^v.*/
|
||||
branches:
|
||||
ignore: /.*/
|
||||
- create-report:
|
||||
requires:
|
||||
- validate-content
|
||||
@@ -474,6 +476,8 @@ workflows:
|
||||
filters:
|
||||
tags:
|
||||
only: /^v.*/
|
||||
branches:
|
||||
ignore: /.*/
|
||||
- update-sources-github:
|
||||
# update package and docs in github if is a tag
|
||||
requires:
|
||||
|
||||
+9
-1
@@ -25,7 +25,15 @@ PACKAGE_PATH="/home/circleci/"$PACKAGE_NAME
|
||||
|
||||
|
||||
cd $APP_PATH
|
||||
mkdir report
|
||||
|
||||
# check if report exists
|
||||
if [ -d report ]
|
||||
then
|
||||
echo "report/ Directory exists"
|
||||
else
|
||||
mkdir report
|
||||
fi
|
||||
|
||||
# get a JWT token
|
||||
AUTH_TOKEN=$(echo -n "$USERNAME:$PASSWORD" | base64)
|
||||
APPINSPECT_TOKEN=$(curl -s --location --request GET 'https://api.splunk.com/2.0/rest/login/splunk' --header "Authorization: Basic $AUTH_TOKEN" | jq -r '.data | .token')
|
||||
|
||||
Reference in New Issue
Block a user