Skip to content
Snippets Groups Projects
Commit c0f48540 authored by jurgenhaas's avatar jurgenhaas
Browse files

Allow to ignore composer audit

parent 48867850
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@ variables:
DISABLE_NODE_ACCESS_REBUILD: 0
ENVIRONMENT_NAME: ${PROJECT_NAME}/$CI_COMMIT_REF_NAME
ENVIRONMENT_URL: https://www.example.com/$SITE_NAME
IGNORE_COMPOSER_AUDIT: 0
INITIAL_SETUP_COMMAND: 'echo "Nothing to do for initial setup"'
LAKEDROPS_CI_PROJECT: gitlab-ci-cd/drupal
LAKEDROPS_CI_REF: main
......
......@@ -713,6 +713,7 @@ Debug:
- grep "Nothing to modify in lock file" /tmp/test.log || EC=$?
- if [[ $EC -ne 0 ]]; then DOUPDATE=1; fi
- rm /tmp/test.log >/dev/null 2>&1 || true
- composer config --no-plugins --no-interaction audit.abandoned report
- composer audit --no-dev --locked --format=plain >/tmp/test.log 2>&1 || true
- cat /tmp/test.log
- EC=0
......@@ -726,7 +727,7 @@ Debug:
- composer audit --no-dev --locked --format=plain >/tmp/test.log 2>&1 || true
- cat /tmp/test.log
- EC=0
- grep "No security vulnerability advisories found" /tmp/test.log || EC=$?
- if [[ "$IGNORE_COMPOSER_AUDIT" == "0" ]]; then grep "No security vulnerability advisories found" /tmp/test.log || EC=$?; fi
- if [[ $EC -ne 0 ]]; then glab issue create --title "Security vulnerability advisories found" --description "$(cat /tmp/test.log)"; exit 1; fi
- rm /tmp/test.log >/dev/null 2>&1 || true
- git status >/tmp/test.log 2>&1
......@@ -769,9 +770,10 @@ Debug:
- !reference [.preparecomposerplugins, before_script]
script:
- rm /tmp/test.log >/dev/null 2>&1 || true
- composer config --no-plugins --no-interaction audit.abandoned report
- composer audit --no-dev --locked --format=plain >/tmp/test.log 2>&1 || true
- EC=0
- grep "No security vulnerability advisories found" /tmp/test.log || EC=$?
- if [[ "$IGNORE_COMPOSER_AUDIT" == "0" ]]; then grep "No security vulnerability advisories found" /tmp/test.log || EC=$?; fi
- if [[ $EC -eq 0 ]]; then exit 0; fi
- glab issue create --title "Security vulnerability advisories found" --description "$(cat /tmp/test.log)"
- rm /tmp/test.log >/dev/null 2>&1 || true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment