Skip to content

Commit

Permalink
PA-7355 Re adjust metadata params (#14)
Browse files Browse the repository at this point in the history
* PA-7353 check version of action

* added check_version to dockerfile

* test if file is found

* another tests to see if path exists

* another test on path

* print env variables to check values

* cleanup

* check if path works

* print path

* final code and cleanup

* modify wording on message

* update version on readme

* final modification on message

* nit empty line

* PA-7355 Re adjust metadata params
  • Loading branch information
SOOS-JAlvarez authored Dec 12, 2022
1 parent 50145f9 commit c3abf92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion check_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
except Exception as error:
print('Failed to check for updates. Please check manually.')

print('-' * 106)
print('-' * 106)
print(current_tag)
5 changes: 2 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash -l

# run check_version.py
python3 /check_version.py
SOOS_APP_VERSION=$(python3 /check_version.py)

cd /zap/

Expand Down Expand Up @@ -47,7 +46,7 @@ SOOS_OAUTH_PARAMETERS=${33}
SOOS_INTEGRATION_NAME="GitHub"
SOOS_INTEGRATION_TYPE="Plugin"

PARAMS="--clientId ${SOOS_CLIENT_ID} --apiKey ${SOOS_API_KEY} --projectName ${SOOS_PROJECT_NAME} --scanMode ${SOOS_SCAN_MODE} --onFailure ${SOOS_ON_FAILURE} --apiURL ${SOOS_API_BASE_URL} --integrationName ${SOOS_INTEGRATION_NAME} --integrationType ${SOOS_INTEGRATION_TYPE} --commitHash ${GITHUB_SHA} --branchName ${GITHUB_REF} --checkoutDir ${GITHUB_WORKSPACE}"
PARAMS="--clientId ${SOOS_CLIENT_ID} --apiKey ${SOOS_API_KEY} --projectName ${SOOS_PROJECT_NAME} --scanMode ${SOOS_SCAN_MODE} --onFailure ${SOOS_ON_FAILURE} --apiURL ${SOOS_API_BASE_URL} --integrationName ${SOOS_INTEGRATION_NAME} --integrationType ${SOOS_INTEGRATION_TYPE} --commitHash ${GITHUB_SHA} --branchName ${GITHUB_REF} --checkoutDir ${GITHUB_WORKSPACE} --appVersion ${SOOS_APP_VERSION}"

if [ "$SOOS_DEBUG" == "true"]; then
PARAMS+=" --debug True"
Expand Down

0 comments on commit c3abf92

Please sign in to comment.